revert unecessary check

This commit is contained in:
Adrien Delorme 2018-09-05 18:31:20 +02:00
parent a9d302def8
commit a11f985e3c
1 changed files with 1 additions and 5 deletions

View File

@ -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)