packer: no need to check if nil since we're appending to slice

This commit is contained in:
Mitchell Hashimoto 2013-08-23 15:25:02 -07:00
parent 5d7dc6e1c9
commit 303a003d2f

View File

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