[gnome-boxes/gnome-3-6] Add missing {} around multi-line 'if'



commit a4f82e40787809e51e0a42789beeb602559bb0bc
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Oct 23 16:30:14 2012 +0200

    Add missing {} around multi-line 'if'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676340

 src/app.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 194c65a..fc5d022 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -259,11 +259,12 @@ private class Boxes.App: Boxes.UI {
             yield connection.fetch_domains_async (null);
             yield connection.fetch_storage_pools_async (null);
             var pool = Boxes.get_storage_pool (connection);
-            if (pool != null)
+            if (pool != null) {
                 if (pool.get_info ().state == GVir.StoragePoolState.INACTIVE)
                     yield pool.start_async (0, null);
                 // If default storage pool exists, we should refresh it already
                 yield pool.refresh_async (null);
+            }
         } catch (GLib.Error error) {
             warning (error.message);
         }



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