Skip to content

Commit a62eae5

Browse files
authored
Remove redundant conditions from HostnameVerificationCall.isIgnored
1 parent 48604cd commit a62eae5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-297/IgnoredHostnameVerification.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ private class HostnameVerificationCall extends MethodAccess {
2222

2323
/** Holds if the result of the call is not used. */
2424
predicate isIgnored() {
25-
not exists(Expr expr | this = expr.getAChildExpr()) and
26-
not exists(IfStmt ifStmt | this = ifStmt.getCondition()) and
2725
this = any(ExprStmt es).getExpr()
2826
}
2927
}

0 commit comments

Comments
 (0)