mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Python: address QL alerts
This commit is contained in:
@@ -145,7 +145,7 @@ predicate valueStep(Node nodeFrom, Node nodeTo) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides predicates to understand the behaviour of the variable capture
|
||||
* Provides predicates to understand the behavior of the variable capture
|
||||
* library instantiation on Python code bases.
|
||||
*
|
||||
* The predicates in here are meant to be run by quick-eval on databases of
|
||||
@@ -198,6 +198,6 @@ private module Debug {
|
||||
}
|
||||
|
||||
predicate unmappedFlowClosureNode(Flow::ClosureNode closureNode) {
|
||||
not exists(Node node | closureNode = asClosureNode(node))
|
||||
not closureNode = asClosureNode(_)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user