diff --git a/provisioner/windows-shell/provisioner.go b/provisioner/windows-shell/provisioner.go index b0d50998f..6baebe70a 100644 --- a/provisioner/windows-shell/provisioner.go +++ b/provisioner/windows-shell/provisioner.go @@ -150,11 +150,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { } } - if errs != nil { - return errs - } - - return nil + return errs } // This function takes the inline scripts, concatenates them