mirror of
https://github.com/distribution/distribution.git
synced 2025-09-08 10:20:08 +00:00
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:
@@ -14,7 +14,7 @@ import (
|
||||
func MakeManifestList(blobstatter distribution.BlobStatter, manifestDigests []digest.Digest) (*manifestlist.DeserializedManifestList, error) {
|
||||
ctx := context.Background()
|
||||
|
||||
var manifestDescriptors []manifestlist.ManifestDescriptor
|
||||
manifestDescriptors := make([]manifestlist.ManifestDescriptor, 0, len(manifestDigests))
|
||||
for _, manifestDigest := range manifestDigests {
|
||||
descriptor, err := blobstatter.Stat(ctx, manifestDigest)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user