Skip to content

Commit

Permalink
martian: fix prealloc linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Choraden committed Aug 16, 2023
1 parent 6300ef1 commit a4862f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/martian/multierror.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (merr *MultiError) Error() string {
merr.mu.RLock()
defer merr.mu.RUnlock()

var errs []string
errs := make([]string, 0, len(merr.errs))
for _, err := range merr.errs {
errs = append(errs, err.Error())
}
Expand Down

0 comments on commit a4862f6

Please sign in to comment.