| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8e39c3b commit ae3398a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | * require calls. | |
| 9 | 9 | */ | |
| 10 | 10 | module.exports.isRequired = function(node, modules) { | |
| 11 | - return node.callee.name === 'require' && | ||
| 11 | + return node.callee.name === 'require' && node.arguments.length !== 0 && | ||
| 12 | 12 | modules.includes(node.arguments[0].value); | |
| 13 | 13 | }; | |
| 14 | 14 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments