We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3d73d commit ec973acCopy full SHA for ec973ac
ruby/ql/lib/codeql/ruby/security/MassAssignmentCustomizations.qll
@@ -57,7 +57,7 @@ module MassAssignment {
57
/** Holds if `h` is an empty hash or contains an empty hash at one if its (possibly nested) values. */
58
private predicate hasEmptyHash(Expr e) {
59
e instanceof HashLiteral and
60
- count(e.(HashLiteral).getAKeyValuePair()) = 0
+ not exists(e.(HashLiteral).getAKeyValuePair())
61
or
62
hasEmptyHash(e.(HashLiteral).getAKeyValuePair().getValue())
63
0 commit comments