Commit 69f97109 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: style

parent 2920239e
...@@ -30,7 +30,8 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio ...@@ -30,7 +30,8 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
ui.Say("Deleting previous output directory...") ui.Say("Deleting previous output directory...")
dir.RemoveAll() dir.RemoveAll()
} else { } else {
state.Put("error", fmt.Errorf("Output directory '%s' already exists.", config.OutputDir)) state.Put("error", fmt.Errorf(
"Output directory '%s' already exists.", config.OutputDir))
return multistep.ActionHalt return multistep.ActionHalt
} }
} }
...@@ -41,9 +42,7 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio ...@@ -41,9 +42,7 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
} }
s.dir = dir s.dir = dir
state.Put("dir", dir) state.Put("dir", dir)
return multistep.ActionContinue return multistep.ActionContinue
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment