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:
parent
162ce50ae5
commit
a96ffa51ce
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user