Skip to content

Commit 98b49f3

Browse files
seamusleahysimonsmith
authored andcommitted
Remove '=== true'
1 parent e2beadb commit 98b49f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,11 @@ module.exports = postcss.plugin('postcss-bem-linter', function(primaryOptions, s
103103
}
104104

105105
function isImplicitComponent(file) {
106-
if (config.implicitComponents === true) {
107-
return true;
108-
109-
} else if (Array.isArray(config.implicitComponents)) {
106+
if (Array.isArray(config.implicitComponents)) {
110107
return checkGlob(file, config.implicitComponents);
111108
}
112109

113-
return false;
110+
return Boolean(config.implicitComponents);
114111
}
115112

116113
function isImplicitUtilities(file) {

0 commit comments

Comments
 (0)