Skip to content

Commit 042315d

Browse files
requireDictionaryWords: Remove unnecessary condition
1 parent 0f2817b commit 042315d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/require-dictionary-words.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ module.exports.prototype = {
390390
if (region.name === name) {
391391
allowed = region.allowed;
392392
}
393-
} else if (/^allowWords/.test(region.rule)) {
393+
} else { // else if (/^allowWords/.test(region.rule))
394394
if (name.match(reWords).indexOf(region.name) > -1) {
395395
allowed = region.allowed;
396396
}

0 commit comments

Comments
 (0)