mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Apply suggestions from code review
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@ predicate nullCheckExpr(Expr checkExpr, Variable var) {
|
|||||||
or
|
or
|
||||||
exists(LogicalAndExpr op, AnalysedExpr child |
|
exists(LogicalAndExpr op, AnalysedExpr child |
|
||||||
expr = op and
|
expr = op and
|
||||||
(op.getLeftOperand() = child or op.getRightOperand() = child) and
|
op.getAnOperand() = child and
|
||||||
nullCheckExpr(child, v)
|
nullCheckExpr(child, v)
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -99,7 +99,7 @@ predicate validCheckExpr(Expr checkExpr, Variable var) {
|
|||||||
or
|
or
|
||||||
exists(LogicalAndExpr op, AnalysedExpr child |
|
exists(LogicalAndExpr op, AnalysedExpr child |
|
||||||
expr = op and
|
expr = op and
|
||||||
(op.getLeftOperand() = child or op.getRightOperand() = child) and
|
op.getAnOperand() = child and
|
||||||
validCheckExpr(child, v)
|
validCheckExpr(child, v)
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user