Skip to content

Commit 5ce20a5

Browse files
kishor82ffurrer2
authored andcommitted
fix: reduce of empty array with no initial value
1 parent 4e09179 commit 5ce20a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function extractReleaseNotes(changelogFile, prerelease) {
5454
}
5555
}
5656
}
57-
let releaseNotes = lines.reduce((previousValue, currentValue) => previousValue + eol + currentValue)
57+
let releaseNotes = lines.reduce((previousValue, currentValue) => previousValue + eol + currentValue,'')
5858
releaseNotes = trimEmptyLinesTop(releaseNotes)
5959
releaseNotes = trimEmptyLinesBottom(releaseNotes)
6060
return releaseNotes

0 commit comments

Comments
 (0)