From d4e0847a74766e60acc61bfb4c2fa9214341eb5d Mon Sep 17 00:00:00 2001 From: bugbuilder Date: Sun, 23 Jul 2017 14:16:03 -0400 Subject: [PATCH] remove unnecessary initialization --- builder/vmware/iso/step_download.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/vmware/iso/step_download.go b/builder/vmware/iso/step_download.go index 7228fc8dd..d9a26fc17 100644 --- a/builder/vmware/iso/step_download.go +++ b/builder/vmware/iso/step_download.go @@ -25,12 +25,10 @@ func (s *stepDownload) Run(state multistep.StateBag) multistep.StepAction { if esx5, ok := driver.(*ESX5Driver); ok { ui.Say("Verifying remote cache") - targetPath := "" for _, url := range s.step.Url { - targetPath = s.step.TargetPath + targetPath := s.step.TargetPath if u, err := neturl.Parse(url); err == nil { - if u.Scheme == "file" { if u.Path != "" {