Skip to content

Commit bfe5db2

Browse files
authored
Merge pull request github#12891 from kaspersv/kaspersv/prevent-ruby-join-regression2
Prevent Ruby join order regression
2 parents ba4d326 + b707c81 commit bfe5db2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,12 +1211,11 @@ private module HashLiteralDesugar {
12111211
child = SynthChild(MethodCallKind("[]", false, hl.getNumberOfElements()))
12121212
or
12131213
parent = TMethodCallSynth(hl, -1, _, _, _) and
1214-
(
1215-
i = 0 and
1216-
child = SynthChild(ConstantReadAccessKind("::Hash"))
1217-
or
1218-
child = childRef(hl.getElement(i - 1))
1219-
)
1214+
i = 0 and
1215+
child = SynthChild(ConstantReadAccessKind("::Hash"))
1216+
or
1217+
parent = TMethodCallSynth(hl, -1, _, _, _) and
1218+
child = childRef(hl.getElement(i - 1))
12201219
)
12211220
}
12221221

0 commit comments

Comments
 (0)