Skip to content

Commit 4f32157

Browse files
erik-kroghesbena
andauthored
rename func to callback
Co-Authored-By: Esben Sparre Andreasen <[email protected]>
1 parent eca98b4 commit 4f32157

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,15 @@ module NodeJSLib {
587587
}
588588

589589
/**
590-
* Gets a possibly promisified (using `util.promisify`) version of the input `func`.
590+
* Gets a possibly promisified (using `util.promisify`) version of the input `callback`.
591591
*/
592-
DataFlow::SourceNode maybePromisified(DataFlow::SourceNode func) {
593-
result = func
592+
DataFlow::SourceNode maybePromisified(DataFlow::SourceNode callback) {
593+
result = callback
594594
or
595595
exists(DataFlow::CallNode promisify |
596596
promisify = DataFlow::moduleMember("util", "promisify").getACall()
597597
|
598-
result = promisify and promisify.getArgument(0).getALocalSource() = func
598+
result = promisify and promisify.getArgument(0).getALocalSource() = callback
599599
)
600600
}
601601

0 commit comments

Comments
 (0)