Code formatting fix master
authorCédric Bosdonnat <cbosdonnat@suse.com>
Sat, 7 Nov 2015 23:55:20 +0000 (15:55 -0800)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Sat, 7 Nov 2015 23:57:23 +0000 (15:57 -0800)
libvirt-sandbox/libvirt-sandbox-config.c

index 55ee291..0ade178 100644 (file)
@@ -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;
     }