diff --git a/pkg/gcrcleaner/cleaner.go b/pkg/gcrcleaner/cleaner.go index 69e2aff..6a8a5bc 100644 --- a/pkg/gcrcleaner/cleaner.go +++ b/pkg/gcrcleaner/cleaner.go @@ -115,7 +115,7 @@ func (c *Cleaner) Clean(ctx context.Context, repo string, since time.Time, keep }) // Generate an ordered map - manifestListForLog := make([]map[string]any, len(manifests)) + manifestListForLog := make([]map[string]any, 0, len(manifests)) for _, m := range manifests { manifestListForLog = append(manifestListForLog, map[string]any{ "repo": m.Repo,