mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: remove spurious dataflow step
This commit is contained in:
@@ -171,6 +171,7 @@ module EssaFlow {
|
||||
// see `with_flow` in `python/ql/src/semmle/python/dataflow/Implementation.qll`
|
||||
with.getContextExpr() = contextManager.getNode() and
|
||||
with.getOptionalVars() = var.getNode() and
|
||||
not with.isAsync() and
|
||||
contextManager.strictlyDominates(var)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user