Skip to content

Commit b7e99ca

Browse files
committed
Noticed two code paths calling same thing. Remove that
1 parent abaae5a commit b7e99ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/jruby/prism/builder/IRBuilderPrism.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ protected Variable receiveBlockArg(Variable v, Operand argsArray, int argIndex,
508508
if (argsArray != null) {
509509
// We are in a nested receive situation -- when we are not at the root of a masgn tree
510510
// Ex: We are trying to receive (b,c) in this example: "|a, (b,c), d| = ..."
511-
if (isSplat) addInstr(new RestArgMultipleAsgnInstr(v, argsArray, argIndex));
512-
else addInstr(new ReqdArgMultipleAsgnInstr(v, argsArray, argIndex));
511+
addInstr(new RestArgMultipleAsgnInstr(v, argsArray, argIndex));
513512
} else {
514513
// argsArray can be null when the first node in the args-node-ast is a multiple-assignment
515514
// For example, for-nodes

0 commit comments

Comments
 (0)