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:
Milos Gajdos 2023-09-03 22:41:51 +01:00
parent a2e65220ae
commit 59fd8656ac
No known key found for this signature in database
GPG key ID: 01300E5E6D417439
10 changed files with 20 additions and 12 deletions

View file

@ -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())
}