remove redundant error check

This commit is contained in:
Megan Marsh 2019-06-12 13:18:57 -07:00
parent ccd4397f26
commit 6982ec796f
1 changed files with 1 additions and 4 deletions

View File

@ -27,11 +27,8 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, _ packer.Communicator) error {
_, retErr := sl.Run(ctx, ui, &p.config)
if retErr != nil {
return retErr
}
return nil
return retErr
}
func (p *Provisioner) Cancel() {