Skip to content

Commit

Permalink
Merge branch 'master' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Oct 2, 2019
2 parents 53e1b05 + c836d86 commit b32c74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/load-release-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = ({releaseRules}, {cwd}) => {
loadedReleaseRules.forEach(rule => {
if (!rule || isUndefined(rule.release)) {
throw new Error('Error in commit-analyzer configuration: rules must be an object with a "release" property');
} else if (RELEASE_TYPES.indexOf(rule.release) === -1 && rule.release !== null && rule.release !== false) {
} else if (!RELEASE_TYPES.includes(rule.release) && rule.release !== null && rule.release !== false) {
throw new Error(
`Error in commit-analyzer configuration: "${
rule.release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"nyc": "^14.0.0",
"semantic-release": "^16.0.0-beta",
"sinon": "^7.1.1",
"xo": "^0.24.0"
"xo": "^0.25.0"
},
"engines": {
"node": ">=8.3"
Expand Down

0 comments on commit b32c74b

Please sign in to comment.