File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,9 @@ function parseChangelogFromPrDescriptions(prDescriptions: string[]): Changelog {
196
196
if ( fixMatches ) {
197
197
const fixMatchesArray = [ ...fixMatches ]
198
198
for ( const fixMatch of fixMatchesArray ) {
199
- if ( fixMatch [ 1 ] . trim ( ) ) {
200
- changelog_fixed . push ( fixMatch [ 1 ] . trim ( ) )
199
+ const fixMatchString = fixMatch [ 1 ] . trim ( )
200
+ if ( fixMatchString ) {
201
+ changelog_fixed . push ( fixMatchString )
201
202
}
202
203
}
203
204
}
@@ -206,8 +207,9 @@ function parseChangelogFromPrDescriptions(prDescriptions: string[]): Changelog {
206
207
if ( addMatches ) {
207
208
const addMatchesArray = [ ...addMatches ]
208
209
for ( const addMatch of addMatchesArray ) {
209
- if ( addMatch [ 1 ] . trim ( ) ) {
210
- changelog_new . push ( addMatch [ 1 ] . trim ( ) )
210
+ const addMatchString = addMatch [ 1 ] . trim ( )
211
+ if ( addMatchString ) {
212
+ changelog_new . push ( addMatchString )
211
213
}
212
214
}
213
215
}
You can’t perform that action at this time.
0 commit comments