Skip to content

Commit

Permalink
requireDictionaryWords: Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrayhamilton committed May 12, 2015
1 parent 0f2817b commit 042315d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/require-dictionary-words.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ module.exports.prototype = {
if (region.name === name) {
allowed = region.allowed;
}
} else if (/^allowWords/.test(region.rule)) {
} else { // else if (/^allowWords/.test(region.rule))
if (name.match(reWords).indexOf(region.name) > -1) {
allowed = region.allowed;
}
Expand Down

0 comments on commit 042315d

Please sign in to comment.