mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Better HostnameVerificationCall.isIgnored()
This commit is contained in:
@@ -22,9 +22,9 @@ private class HostnameVerificationCall extends MethodAccess {
|
||||
|
||||
/** Holds if the result of the call is not used. */
|
||||
predicate isIgnored() {
|
||||
not exists(Expr expr, IfStmt ifStmt, MethodAccess ma |
|
||||
this = [expr.getAChildExpr(), ifStmt.getCondition(), ma.getAnArgument()]
|
||||
)
|
||||
not exists(Expr expr | this = expr.getAChildExpr()) and
|
||||
not exists(IfStmt ifStmt | this = ifStmt.getCondition()) and
|
||||
this = any(ExprStmt es).getExpr()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user