Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e99b9d3

Browse files
author
Esben Sparre Andreasen
committed
JS: polish characters of NodeJSFileSystemAccess*Call
1 parent 4e4597a commit e99b9d3

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,12 +425,12 @@ module NodeJSLib {
425425
/** Only NodeJSSystemFileAccessCalls that write data to 'fs' */
426426
private class NodeJSFileSystemAccessWriteCall extends FileSystemWriteAccess, NodeJSFileSystemAccessCall {
427427
NodeJSFileSystemAccessWriteCall () {
428-
this.getMethodName() = "appendFile" or
429-
this.getMethodName() = "appendFileSync" or
430-
this.getMethodName() = "write" or
431-
this.getMethodName() = "writeFile" or
432-
this.getMethodName() = "writeFileSync" or
433-
this.getMethodName() = "writeSync"
428+
methodName = "appendFile" or
429+
methodName = "appendFileSync" or
430+
methodName = "write" or
431+
methodName = "writeFile" or
432+
methodName = "writeFileSync" or
433+
methodName = "writeSync"
434434
}
435435

436436
override DataFlow::Node getADataNode() {
@@ -452,10 +452,10 @@ module NodeJSLib {
452452
/** Only NodeJSSystemFileAccessCalls that read data from 'fs' */
453453
private class NodeJSFileSystemAccessReadCall extends FileSystemReadAccess, NodeJSFileSystemAccessCall {
454454
NodeJSFileSystemAccessReadCall () {
455-
this.getMethodName() = "read" or
456-
this.getMethodName() = "readSync" or
457-
this.getMethodName() = "readFile" or
458-
this.getMethodName() = "readFileSync"
455+
methodName = "read" or
456+
methodName = "readSync" or
457+
methodName = "readFile" or
458+
methodName = "readFileSync"
459459
}
460460

461461
override DataFlow::Node getADataNode() {

0 commit comments

Comments
 (0)