From d73c2b4f4b013670e5ee20dafb6e4d4f194b9e28 Mon Sep 17 00:00:00 2001 From: Riobard Date: Wed, 9 Apr 2014 01:42:35 -0230 Subject: [PATCH] Ran `gofmt` --- cmds.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cmds.go b/cmds.go index 5723b9a..72edc35 100644 --- a/cmds.go +++ b/cmds.go @@ -121,18 +121,18 @@ func cmdInit() int { return 1 } - if B2D.VMDK != "" { - logf("Using %v as base VMDK", B2D.VMDK) - if err := copyDiskImage(diskImg, B2D.VMDK); err != nil { - logf("Failed to copy disk image %v from %v: %s", diskImg, B2D.VMDK, err) - return 1 - } - } else { - if err := makeDiskImage(diskImg, B2D.DiskSize); err != nil { - logf("Failed to create disk image %q: %s", diskImg, err) - return 1 - } - } + if B2D.VMDK != "" { + logf("Using %v as base VMDK", B2D.VMDK) + if err := copyDiskImage(diskImg, B2D.VMDK); err != nil { + logf("Failed to copy disk image %v from %v: %s", diskImg, B2D.VMDK, err) + return 1 + } + } else { + if err := makeDiskImage(diskImg, B2D.DiskSize); err != nil { + logf("Failed to create disk image %q: %s", diskImg, err) + return 1 + } + } } if err := m.AttachStorage("SATA", vbx.StorageMedium{Port: 1, Device: 0, DriveType: vbx.DriveHDD, Medium: diskImg}); err != nil {