Skip to content

Commit 71665a0

Browse files
authored
Merge pull request github#3737 from Marcono1234/patch-1
Simplify NoAssignInBooleanExprs.ql
2 parents ac89559 + 161ba92 commit 71665a0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/ql/src/Likely Bugs/Comparison/NoAssignInBooleanExprs.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ import semmle.code.java.Statement
1717
/** An expression that is used as a condition. */
1818
class BooleanExpr extends Expr {
1919
BooleanExpr() {
20-
exists(IfStmt s | s.getCondition() = this) or
21-
exists(ForStmt s | s.getCondition() = this) or
22-
exists(WhileStmt s | s.getCondition() = this) or
23-
exists(DoStmt s | s.getCondition() = this) or
20+
exists(ConditionalStmt s | s.getCondition() = this) or
2421
exists(ConditionalExpr s | s.getCondition() = this)
2522
}
2623
}

0 commit comments

Comments
 (0)