Enable prealloc linter
This will give us nice little performance gains in some code paths. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
a2e65220ae
commit
59fd8656ac
10 changed files with 20 additions and 12 deletions
|
@ -90,7 +90,7 @@ func (ErrManifestUnverified) Error() string {
|
|||
type ErrManifestVerification []error
|
||||
|
||||
func (errs ErrManifestVerification) Error() string {
|
||||
var parts []string
|
||||
parts := make([]string, 0, len(errs))
|
||||
for _, err := range errs {
|
||||
parts = append(parts, err.Error())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue