Skip to content

Commit

Permalink
Do not use new ?? operator in conventional-changelog preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitive committed Sep 14, 2021
1 parent 2e451e3 commit 751e41c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {

whatBump: (commits) => {
const bumps = commits.map((commit) => {
const bodyLines = (commit.body ?? '').toLowerCase().split('\n').filter(Boolean)
const bodyLines = (commit.body || '').toLowerCase().split('\n').filter(Boolean)
if (bodyLines.includes('bump major')) {
return levels.major
}
Expand Down

0 comments on commit 751e41c

Please sign in to comment.