mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
JS: prepare DefensiveProgramming.qll for additions
This commit is contained in:
@@ -87,7 +87,7 @@ predicate isConstantBooleanReturnValue(Expr e) {
|
||||
predicate whitelist(Expr e) {
|
||||
isConstant(e) or
|
||||
isConstant(e.(LogNotExpr).getOperand()) or
|
||||
e.flow() instanceof DefensiveInit or
|
||||
e.flow() instanceof Internal::DefensiveInit or
|
||||
isInitialParameterUse(e) or
|
||||
isConstantBooleanReturnValue(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user