Commit 0484006e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

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

parent 2302e90a
...@@ -37,10 +37,6 @@ func MultiErrorAppend(err error, errs ...error) *MultiError { ...@@ -37,10 +37,6 @@ func MultiErrorAppend(err error, errs ...error) *MultiError {
err = new(MultiError) err = new(MultiError)
} }
if err.Errors == nil {
err.Errors = make([]error, 0, len(errs))
}
err.Errors = append(err.Errors, errs...) err.Errors = append(err.Errors, errs...)
return err return err
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment