Skip to content

Commit 087e6d1

Browse files
committed
fix QL-for-QL warning
1 parent 21b55ce commit 087e6d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/regex/codeql/regex/nfa/NfaUtils.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ module Make<RegexTreeViewSig TreeImpl> {
455455
not hasChildThatMatches(cc, char) and
456456
(
457457
// detect unsupported char classes that doesn't match anything (e.g. `\p{L}` in ruby), and don't report any matches
458-
exists(string c | hasChildThatMatches(cc, c))
458+
hasChildThatMatches(cc, _)
459459
or
460460
not exists(cc.getAChild()) // [^] still matches everything
461461
)
@@ -546,7 +546,7 @@ module Make<RegexTreeViewSig TreeImpl> {
546546
override predicate matches(string char) {
547547
not classEscapeMatches(charClass.toLowerCase(), char) and
548548
// detect unsupported char classes (e.g. `\p{L}` in ruby), and don't report any matches
549-
exists(string c | classEscapeMatches(charClass.toLowerCase(), c))
549+
classEscapeMatches(charClass.toLowerCase(), _)
550550
}
551551
}
552552

0 commit comments

Comments
 (0)