remove unnecessary initialization

This commit is contained in:
bugbuilder 2017-07-23 14:16:03 -04:00
parent 22aa89db27
commit d4e0847a74
1 changed files with 1 additions and 3 deletions

View File

@ -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 != "" {