mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
simplify expressions that could be type-casts
This commit is contained in:
@@ -8,7 +8,7 @@ import semmle.python.pointsto.PointsTo
|
||||
import semmle.python.pointsto.PointsToContext
|
||||
|
||||
predicate trivial(ControlFlowNode f) {
|
||||
exists(Parameter p | p = f.getNode())
|
||||
f.getNode() instanceof Parameter
|
||||
or
|
||||
f instanceof NameConstantNode
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user