Apply suggestions from code review

Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
Jeroen Ketema
2022-07-12 16:59:15 +02:00
committed by GitHub
parent 8f9d419441
commit f7c4fa691d

View File

@@ -46,7 +46,7 @@ predicate nullCheckExpr(Expr checkExpr, Variable var) {
or
exists(LogicalAndExpr op, AnalysedExpr child |
expr = op and
(op.getLeftOperand() = child or op.getRightOperand() = child) and
op.getAnOperand() = child and
nullCheckExpr(child, v)
)
or
@@ -99,7 +99,7 @@ predicate validCheckExpr(Expr checkExpr, Variable var) {
or
exists(LogicalAndExpr op, AnalysedExpr child |
expr = op and
(op.getLeftOperand() = child or op.getRightOperand() = child) and
op.getAnOperand() = child and
validCheckExpr(child, v)
)
or