From 8098ba9cdf9c98a405502f1cb872d2cd6f741dfa Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 6 Jan 2020 07:45:05 -0800 Subject: [PATCH] builder/virtualbox/common: remove unused url variable (#8559) --- builder/virtualbox/common/step_download_guest_additions.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/builder/virtualbox/common/step_download_guest_additions.go b/builder/virtualbox/common/step_download_guest_additions.go index 77c7b733d..693e26dbd 100644 --- a/builder/virtualbox/common/step_download_guest_additions.go +++ b/builder/virtualbox/common/step_download_guest_additions.go @@ -67,16 +67,13 @@ func (s *StepDownloadGuestAdditions) Run(ctx context.Context, state multistep.St checksumType := "sha256" - // Grab the guest_additions_url as specified by the user. - url := s.GuestAdditionsURL - // Initialize the template context so we can interpolate some variables.. s.Ctx.Data = &guestAdditionsUrlTemplate{ Version: version, } // Interpolate any user-variables specified within the guest_additions_url - url, err = interpolate.Render(s.GuestAdditionsURL, &s.Ctx) + url, err := interpolate.Render(s.GuestAdditionsURL, &s.Ctx) if err != nil { err := fmt.Errorf("Error preparing guest additions url: %s", err) state.Put("error", err)