mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
remove redundant cast where the type is enforced by an equality comparison
This commit is contained in:
@@ -31,7 +31,7 @@ class Expr extends StmtParent, @expr {
|
||||
override Stmt getEnclosingStmt() {
|
||||
result = this.getParent().(Expr).getEnclosingStmt()
|
||||
or
|
||||
result = this.getParent().(Stmt)
|
||||
result = this.getParent()
|
||||
or
|
||||
exists(Expr other | result = other.getEnclosingStmt() and other.getConversion() = this)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user