Skip to content

Commit 7324177

Browse files
committed
Python: address QL alerts
1 parent 25c83dc commit 7324177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/VariableCapture.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ predicate valueStep(Node nodeFrom, Node nodeTo) {
145145
}
146146

147147
/**
148-
* Provides predicates to understand the behaviour of the variable capture
148+
* Provides predicates to understand the behavior of the variable capture
149149
* library instantiation on Python code bases.
150150
*
151151
* The predicates in here are meant to be run by quick-eval on databases of
@@ -198,6 +198,6 @@ private module Debug {
198198
}
199199

200200
predicate unmappedFlowClosureNode(Flow::ClosureNode closureNode) {
201-
not exists(Node node | closureNode = asClosureNode(node))
201+
not closureNode = asClosureNode(_)
202202
}
203203
}

0 commit comments

Comments
 (0)