File tree Expand file tree Collapse file tree
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2203,7 +2203,7 @@ module Enumerable {
22032203 input = "Argument[self].Element[0]" and
22042204 output = "Argument[block].Parameter[0]"
22052205 or
2206- exists ( ArrayIndex i | i > 0 | input = "Argument[self].Element[" + i + "]" ) and
2206+ input = "Argument[self].Element[1..]" and
22072207 output = "Argument[block].Parameter[1]"
22082208 or
22092209 input = "Argument[block].ReturnValue" and output = "ReturnValue"
@@ -2222,7 +2222,7 @@ module Enumerable {
22222222 output = "Argument[block].Parameter[0]"
22232223 or
22242224 // 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
22262226 output = "Argument[block].Parameter[1]"
22272227 or
22282228 input = "Argument[block].ReturnValue" and output = "ReturnValue"
You can’t perform that action at this time.
0 commit comments