Cleaned up golint warnings

This commit is contained in:
Thomas Meckel 2019-08-03 13:43:11 +02:00
parent 92501cd344
commit 01edafb49f
1 changed files with 4 additions and 4 deletions

View File

@ -163,16 +163,16 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
// If we were interrupted or cancelled, then just exit.
if _, ok := state.GetOk(multistep.StateCancelled); ok {
return nil, errors.New("Build was cancelled.")
return nil, errors.New("build was cancelled")
}
if _, ok := state.GetOk(multistep.StateHalted); ok {
return nil, errors.New("Build was halted.")
return nil, errors.New("build was halted")
}
if b.config.SkipExport {
return nil, nil
} else {
return vboxcommon.NewArtifact(b.config.OutputDir)
}
return vboxcommon.NewArtifact(b.config.OutputDir)
}