mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
rename func to callback
Co-Authored-By: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
eca98b42d2
commit
4f32157a78
@@ -587,15 +587,15 @@ module NodeJSLib {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a possibly promisified (using `util.promisify`) version of the input `func`.
|
||||
* Gets a possibly promisified (using `util.promisify`) version of the input `callback`.
|
||||
*/
|
||||
DataFlow::SourceNode maybePromisified(DataFlow::SourceNode func) {
|
||||
result = func
|
||||
DataFlow::SourceNode maybePromisified(DataFlow::SourceNode callback) {
|
||||
result = callback
|
||||
or
|
||||
exists(DataFlow::CallNode promisify |
|
||||
promisify = DataFlow::moduleMember("util", "promisify").getACall()
|
||||
|
|
||||
result = promisify and promisify.getArgument(0).getALocalSource() = func
|
||||
result = promisify and promisify.getArgument(0).getALocalSource() = callback
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user