Skip to content

Commit

Permalink
Fix misallocated slice (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Nov 8, 2022
1 parent 12c8b7b commit 4c71122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gcrcleaner/cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4c71122

Please sign in to comment.