Skip to content

Commit 51b6da4

Browse files
authored
Merge pull request github#12875 from kaspersv/kaspersv/prevent-ruby-join-order-regression
Prevent Ruby join order regression
2 parents 377aa68 + ba6bb79 commit 51b6da4

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
@@ -1169,12 +1169,11 @@ private module ArrayLiteralDesugar {
11691169
child = SynthChild(MethodCallKind("[]", false, al.getNumberOfElements()))
11701170
or
11711171
parent = TMethodCallSynth(al, -1, _, _, _) and
1172-
(
1173-
i = 0 and
1174-
child = SynthChild(ConstantReadAccessKind("::Array"))
1175-
or
1176-
child = childRef(al.getElement(i - 1))
1177-
)
1172+
i = 0 and
1173+
child = SynthChild(ConstantReadAccessKind("::Array"))
1174+
or
1175+
parent = TMethodCallSynth(al, -1, _, _, _) and
1176+
child = childRef(al.getElement(i - 1))
11781177
)
11791178
}
11801179

0 commit comments

Comments
 (0)