Merge pull request #45390 from vvoland/c8d-imagelist-fix-rootlen
c8d/list: Initialize capacity instead of length
This commit is contained in:
commit
a343ed13e5
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (i *ImageService) Images(ctx context.Context, opts types.ImageListOptions)
|
|||
layers map[digest.Digest]int
|
||||
)
|
||||
if opts.SharedSize {
|
||||
root = make([]*[]digest.Digest, len(imgs))
|
||||
root = make([]*[]digest.Digest, 0, len(imgs))
|
||||
layers = make(map[digest.Digest]int)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue