Skip to content

Commit a9149b7

Browse files
tausbnyoff
andauthored
Python: Update python/ql/src/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
Co-authored-by: yoff <lerchedahl@gmail.com>
1 parent 5a9cc08 commit a9149b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ private predicate localEssaStep(EssaNode nodeFrom, EssaNode nodeTo) {
215215
* Holds if `result` is either `node`, or the post-update node for `node`.
216216
*/
217217
private Node update(Node node) {
218-
node = result.(PostUpdateNode).getPreUpdateNode()
219-
or
220218
result = node
219+
or
220+
result.(PostUpdateNode).getPreUpdateNode() = node
221221
}
222222

223223
// TODO: Make modules for these headings

0 commit comments

Comments
 (0)