0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-25 07:30:38 +00:00

refactor: fix prealloc lint

This commit is contained in:
Beatriz Vieira 2021-07-31 16:35:28 -03:00
parent 162ce50ae5
commit a96ffa51ce

View File

@ -80,9 +80,9 @@ func (p OutputFormatterImpl) FormatReleaseNote(releasenote ReleaseNote) string {
// FormatChangelog format a changelog. // FormatChangelog format a changelog.
func (p OutputFormatterImpl) FormatChangelog(releasenotes []ReleaseNote) string { func (p OutputFormatterImpl) FormatChangelog(releasenotes []ReleaseNote) string {
var templateVars []releaseNoteTemplateVariables templateVars := make([]releaseNoteTemplateVariables, len(releasenotes))
for _, v := range releasenotes { for i, v := range releasenotes {
templateVars = append(templateVars, releaseNoteVariables(v)) templateVars[i] = releaseNoteVariables(v)
} }
var b bytes.Buffer var b bytes.Buffer