From a11f985e3c19764abe02c1674d0972cc0a9f216d Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 5 Sep 2018 18:31:20 +0200 Subject: [PATCH] revert unecessary check --- common/step_download.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/step_download.go b/common/step_download.go index 16da1626f..61f7baf85 100644 --- a/common/step_download.go +++ b/common/step_download.go @@ -138,11 +138,7 @@ func (s *StepDownload) Cleanup(multistep.StateBag) {} func (s *StepDownload) download(config *DownloadConfig, state multistep.StateBag) (string, error, bool) { var path string - v, ok := state.GetOk("ui") - if !ok { - return "", nil, false - } - ui := v.(packer.Ui) + ui := state.Get("ui").(packer.Ui) // Create download client with config download := NewDownloadClient(config, ui)