[gnome-boxes] Micro cleanup



commit d87e42c0d1478868b7f320da514a3669e2b9ac0c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jun 26 23:28:34 2012 +0300

    Micro cleanup
    
    Catch specific error instead of checking error code.

 src/util.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index 4e29588..a5d7d72 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -80,9 +80,8 @@ namespace Boxes {
         try {
             var file = GLib.File.new_for_path (dir);
             file.make_directory_with_parents (null);
+        } catch (IOError.EXISTS error) {
         } catch (GLib.Error error) {
-            if (error is IOError.EXISTS)
-                return;
             warning (error.message);
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]