[sandbox 2/2] Code formatting fix

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

 



---
 libvirt-sandbox/libvirt-sandbox-config.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/libvirt-sandbox/libvirt-sandbox-config.c b/libvirt-sandbox/libvirt-sandbox-config.c
index 55ee291..0ade178 100644
--- a/libvirt-sandbox/libvirt-sandbox-config.c
+++ b/libvirt-sandbox/libvirt-sandbox-config.c
@@ -1381,11 +1381,8 @@ gboolean gvir_sandbox_config_add_disk_opts(GVirSandboxConfig *config,
                             _("Unknown disk image format: '%s'"), formatStr + 7);
                 return FALSE;
         }
-    }
-    else {
-        if ((format = gvir_sandbox_util_guess_image_format(source, error)) < 0) {
-           format = GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW;
-        }
+    } else if ((format = gvir_sandbox_util_guess_image_format(source, error)) < 0) {
+        format = GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW;
     }
 
 
-- 
2.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]