File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments