File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -587,15 +587,15 @@ module NodeJSLib {
587
587
}
588
588
589
589
/**
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 `.
591
591
*/
592
- DataFlow:: SourceNode maybePromisified ( DataFlow:: SourceNode func ) {
593
- result = func
592
+ DataFlow:: SourceNode maybePromisified ( DataFlow:: SourceNode callback ) {
593
+ result = callback
594
594
or
595
595
exists ( DataFlow:: CallNode promisify |
596
596
promisify = DataFlow:: moduleMember ( "util" , "promisify" ) .getACall ( )
597
597
|
598
- result = promisify and promisify .getArgument ( 0 ) .getALocalSource ( ) = func
598
+ result = promisify and promisify .getArgument ( 0 ) .getALocalSource ( ) = callback
599
599
)
600
600
}
601
601
You can’t perform that action at this time.
0 commit comments