Skip to content

Commit 78cb534

Browse files
committed
Python: Slight cleanup of Cached::call
Makes it more similar to the other functions in this module.
1 parent 6c8dfb2 commit 78cb534

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,9 @@ private module Cached {
527527
*/
528528
cached
529529
predicate call(LocalSourceNode func, Node call) {
530-
exists(CfgNode n, CallNode call_node |
531-
call.asCfgNode() = call_node and n.asCfgNode() = call_node.getFunction()
532-
|
533-
func.flowsTo(n)
530+
exists(CfgNode n |
531+
func.flowsTo(n) and
532+
n.asCfgNode() = call.asCfgNode().(CallNode).getFunction()
534533
)
535534
}
536535
}

0 commit comments

Comments
 (0)