From 69f971094c6d853c31d466f4765e16639d1671fb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 16 Dec 2013 20:45:17 -0800 Subject: [PATCH] builder/vmware: style --- builder/vmware/step_prepare_output_dir.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builder/vmware/step_prepare_output_dir.go b/builder/vmware/step_prepare_output_dir.go index bd5ae45b8..2909712ef 100644 --- a/builder/vmware/step_prepare_output_dir.go +++ b/builder/vmware/step_prepare_output_dir.go @@ -30,7 +30,8 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio ui.Say("Deleting previous output directory...") dir.RemoveAll() } 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 } } @@ -41,9 +42,7 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio } s.dir = dir - state.Put("dir", dir) - return multistep.ActionContinue }