File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2203,7 +2203,7 @@ module Enumerable {
2203
2203
input = "Argument[self].Element[0]" and
2204
2204
output = "Argument[block].Parameter[0]"
2205
2205
or
2206
- exists ( ArrayIndex i | i > 0 | input = "Argument[self].Element[" + i + "]" ) and
2206
+ input = "Argument[self].Element[1..]" and
2207
2207
output = "Argument[block].Parameter[1]"
2208
2208
or
2209
2209
input = "Argument[block].ReturnValue" and output = "ReturnValue"
@@ -2222,7 +2222,7 @@ module Enumerable {
2222
2222
output = "Argument[block].Parameter[0]"
2223
2223
or
2224
2224
// Each element in the receiver is passed to the second block parameter.
2225
- exists ( ArrayIndex i | input = "Argument[self].Element[" + i + "]" ) and
2225
+ input = "Argument[self].Element[0..]" and
2226
2226
output = "Argument[block].Parameter[1]"
2227
2227
or
2228
2228
input = "Argument[block].ReturnValue" and output = "ReturnValue"
You can’t perform that action at this time.
0 commit comments