mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Python: Slight cleanup of Cached::call
Makes it more similar to the other functions in this module.
This commit is contained in:
@@ -527,10 +527,9 @@ private module Cached {
|
||||
*/
|
||||
cached
|
||||
predicate call(LocalSourceNode func, Node call) {
|
||||
exists(CfgNode n, CallNode call_node |
|
||||
call.asCfgNode() = call_node and n.asCfgNode() = call_node.getFunction()
|
||||
|
|
||||
func.flowsTo(n)
|
||||
exists(CfgNode n |
|
||||
func.flowsTo(n) and
|
||||
n.asCfgNode() = call.asCfgNode().(CallNode).getFunction()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user