Python: Fix code after removing getPostUpdateNode

This commit is contained in:
Rasmus Wriedt Larsen
2021-07-02 13:25:25 +02:00
parent 7a6eee50ff
commit 22c155687e

View File

@@ -178,7 +178,7 @@ predicate containerStep(DataFlow::CfgNode nodeFrom, DataFlow::Node nodeTo) {
// list.append, set.add
exists(DataFlow::MethodCallNode call, DataFlow::Node obj |
call.calls(obj, ["append", "add"]) and
obj.getPostUpdateNode() = nodeTo and
obj = nodeTo.(DataFlow::PostUpdateNode).getPreUpdateNode() and
call.getArg(0) = nodeFrom
)
}