mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 01:48:09 -07:00
Minor fix: preallocate arrays with known size
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ func (r *Run) Start(ps storage.Storage) error {
|
||||
}
|
||||
|
||||
func combineErrors(prefix string, errs []error) error {
|
||||
var errStrs []string
|
||||
errStrs := make([]string, 0, len(errs))
|
||||
for _, err := range errs {
|
||||
errStrs = append(errStrs, err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user