Skip to content

Commit 2c1cc9e

Browse files
erik-kroghesbena
andauthored
use local variable instead of module.exports in example
Co-authored-by: Esben Sparre Andreasen <[email protected]>
1 parent 3b82452 commit 2c1cc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ module NodeJSLib {
480480
)
481481
or
482482
// const fs = require('fs');
483-
// module.exports = methods.reduce((obj, method) => {
483+
// let fs_copy = methods.reduce((obj, method) => {
484484
// obj[method] = fs[method];
485485
// return obj;
486486
// }, {});

0 commit comments

Comments
 (0)