Skip to content

Commit ca5456a

Browse files
committed
Ruby: Remove duplicate disjuncts
1 parent 6011d26 commit ca5456a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,8 @@ predicate parameterMatch(ParameterPosition ppos, ArgumentPosition apos) {
14361436
or
14371437
ppos.isSynthSplat() and apos.isSplatAll()
14381438
or
1439+
apos.isSynthSplat() and ppos.isSynthArgSplat()
1440+
or
14391441
// Exact splat match
14401442
exists(int n | apos.isSplat(n) and ppos.isSplat(n))
14411443
or
@@ -1446,13 +1448,6 @@ predicate parameterMatch(ParameterPosition ppos, ArgumentPosition apos) {
14461448
ppos.isAnyNamed() and apos.isKeyword(_)
14471449
or
14481450
apos.isAnyNamed() and ppos.isKeyword(_)
1449-
or
1450-
ppos.isSynthSplat() and apos.isSplatAll()
1451-
or
1452-
// Exact splat match
1453-
exists(int n | apos.isSplat(n) and ppos.isSplat(n))
1454-
or
1455-
apos.isSynthSplat() and ppos.isSynthArgSplat()
14561451
}
14571452

14581453
/**

0 commit comments

Comments
 (0)