Skip to content

Commit 595875f

Browse files
committed
remove redundant not-equals check
1 parent a4262f8 commit 595875f

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

java/ql/lib/semmle/code/java/security/OverlyLargeRangeQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ RegExpCharacterRange getABadRange(string reason, int priority) {
244244
priority = 1 and
245245
exists(RegExpCharacterRange other |
246246
reason = "overlaps with " + other + " in the same character class" and
247-
result != other and
248247
rankRange(result) < rankRange(other) and
249248
overlap(result, other)
250249
)

javascript/ql/lib/semmle/javascript/security/OverlyLargeRangeQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ RegExpCharacterRange getABadRange(string reason, int priority) {
244244
priority = 1 and
245245
exists(RegExpCharacterRange other |
246246
reason = "overlaps with " + other + " in the same character class" and
247-
result != other and
248247
rankRange(result) < rankRange(other) and
249248
overlap(result, other)
250249
)

python/ql/lib/semmle/python/security/OverlyLargeRangeQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ RegExpCharacterRange getABadRange(string reason, int priority) {
244244
priority = 1 and
245245
exists(RegExpCharacterRange other |
246246
reason = "overlaps with " + other + " in the same character class" and
247-
result != other and
248247
rankRange(result) < rankRange(other) and
249248
overlap(result, other)
250249
)

ruby/ql/lib/codeql/ruby/security/OverlyLargeRangeQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ RegExpCharacterRange getABadRange(string reason, int priority) {
244244
priority = 1 and
245245
exists(RegExpCharacterRange other |
246246
reason = "overlaps with " + other + " in the same character class" and
247-
result != other and
248247
rankRange(result) < rankRange(other) and
249248
overlap(result, other)
250249
)

0 commit comments

Comments
 (0)