mirror of
https://github.com/distribution/distribution.git
synced 2025-09-16 15:21:37 +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:
@@ -416,7 +416,7 @@ func directDescendants(blobs []string, prefix string) []string {
|
||||
}
|
||||
}
|
||||
|
||||
var keys []string
|
||||
keys := make([]string, 0, len(out))
|
||||
for k := range out {
|
||||
keys = append(keys, k)
|
||||
}
|
||||
|
Reference in New Issue
Block a user