Skip to content

Commit b03f6ef

Browse files
committed
Ruby: Refactor
1 parent 142393b commit b03f6ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowDispatch.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,18 +1418,18 @@ predicate parameterMatch(ParameterPosition ppos, ArgumentPosition apos) {
14181418
or
14191419
ppos.isSplatAll() and apos.isSplatAll()
14201420
or
1421+
ppos.isSynthSplat() and apos.isSplatAll()
1422+
or
1423+
// Exact splat match
1424+
exists(int n | apos.isSplat(n) and ppos.isSplat(n))
1425+
or
14211426
ppos.isAny() and argumentPositionIsNotSelf(apos)
14221427
or
14231428
apos.isAny() and parameterPositionIsNotSelf(ppos)
14241429
or
14251430
ppos.isAnyNamed() and apos.isKeyword(_)
14261431
or
14271432
apos.isAnyNamed() and ppos.isKeyword(_)
1428-
or
1429-
ppos.isSynthSplat() and apos.isSplatAll()
1430-
or
1431-
// Exact splat match
1432-
exists(int n | apos.isSplat(n) and ppos.isSplat(n))
14331433
}
14341434

14351435
/**

0 commit comments

Comments
 (0)