Skip to content

Commit

Permalink
refactor: use boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Sep 10, 2020
1 parent 927d7e5 commit 450efd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function validateConfig(config) {

['generateNotes']
.forEach((plugin) => {
assert(`Expected release.${ plugin } to be set."`, () => release[plugin]);
assert(`Expected release.${ plugin } to be set."`, () => Boolean(release[plugin]));
});

['analyzeCommits', 'getLastRelease', 'verifyConditions', 'verifyRelease']
Expand Down

0 comments on commit 450efd0

Please sign in to comment.