mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Use not exists
This commit is contained in:
@@ -57,7 +57,7 @@ module MassAssignment {
|
||||
/** Holds if `h` is an empty hash or contains an empty hash at one if its (possibly nested) values. */
|
||||
private predicate hasEmptyHash(Expr e) {
|
||||
e instanceof HashLiteral and
|
||||
count(e.(HashLiteral).getAKeyValuePair()) = 0
|
||||
not exists(e.(HashLiteral).getAKeyValuePair())
|
||||
or
|
||||
hasEmptyHash(e.(HashLiteral).getAKeyValuePair().getValue())
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user