Skip to content

Commit 02db472

Browse files
author
Stephan Brandauer
committed
consistent notation
1 parent 8be58fe commit 02db472

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ module NodeJSLib {
408408

409409
/**
410410
* Holds if the `i`th parameter of method `methodName` of the Node.js
411-
* `fs` module or the `fs-extra` might represent a file path.
411+
* `fs` module or the `fs-extra` module might represent a file path.
412412
*
413413
* For `fs`, we determine this by looking for an externs declaration for
414414
* `fs.methodName` where the `i`th parameter's name is `filename` or
@@ -435,13 +435,13 @@ module NodeJSLib {
435435
* method might represent a file path.
436436
*/
437437
private predicate fsExtraExtensionFileParam(string methodName, int i) {
438-
methodName = ["copy", "copySync", "copyFile"] and i = [0 .. 1]
438+
methodName = ["copy", "copySync", "copyFile"] and i = [0, 1]
439439
or
440-
methodName = ["move", "moveSync"] and i = [0 .. 1]
440+
methodName = ["move", "moveSync"] and i = [0, 1]
441441
or
442442
methodName = ["createFile", "createFileSync"] and i = 0
443443
or
444-
methodName = ["createSymLink", "createSymlinkSync"] and i = [0 .. 1]
444+
methodName = ["createSymLink", "createSymlinkSync"] and i = [0, 1]
445445
or
446446
methodName = ["ensureDir", "ensureDirSync"] and i = 0
447447
or

0 commit comments

Comments
 (0)