Skip to content

Commit

Permalink
generator - pre-alloc list
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Nov 8, 2023
1 parent 82364cb commit 3c47517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/generator/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func getReleasesTags(repo *git.Repository) ([]*plumbing.Reference, error) {
versions := maps.Keys(versionToRef)
semver.Sort(versions)

var out []*plumbing.Reference
out := make([]*plumbing.Reference, 0, len(versions))
for _, ver := range versions {
out = append(out, versionToRef[ver])
}
Expand Down

0 comments on commit 3c47517

Please sign in to comment.