Skip to content

Commit 7342442

Browse files
committed
chore: Remove redundant Node#type check
1 parent c75e343 commit 7342442

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rules/no-mixed-requires.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ module.exports = {
176176
return REQ_MODULE
177177
}
178178

179-
if (
180-
initExpression.type === "CallExpression" &&
181-
initExpression.arguments.length === 0
182-
) {
179+
if (initExpression.arguments.length === 0) {
183180
// "var x = require();"
184181
return REQ_COMPUTED
185182
}

0 commit comments

Comments
 (0)