mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 09:40:17 -04:00
packer: no need to check if nil since we're appending to slice
This commit is contained in:
parent
5d7dc6e1c9
commit
303a003d2f
1 changed files with 0 additions and 4 deletions
|
|
@ -37,10 +37,6 @@ func MultiErrorAppend(err error, errs ...error) *MultiError {
|
|||
err = new(MultiError)
|
||||
}
|
||||
|
||||
if err.Errors == nil {
|
||||
err.Errors = make([]error, 0, len(errs))
|
||||
}
|
||||
|
||||
err.Errors = append(err.Errors, errs...)
|
||||
return err
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue