Skip to content

Commit f083b68

Browse files
committed
Remove redundant check
1 parent caed4a8 commit f083b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/truffleruby/parser/BodyTranslator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ protected ArgumentsAndBlockTranslation translateArgumentsAndBlock(SourceIndexLen
692692
}
693693

694694
// If the last argument is a splat, do not copy the array, to support m(*args, &args.pop)
695-
if (isSplatted && argumentsTranslated.length > 0) {
695+
if (isSplatted) {
696696
final RubyNode last = argumentsTranslated[argumentsTranslated.length - 1];
697697
if (last instanceof SplatCastNode) {
698698
((SplatCastNode) last).doNotCopy();
@@ -716,8 +716,8 @@ protected ArgumentsAndBlockTranslation translateArgumentsAndBlock(SourceIndexLen
716716
frameOnStackMarkerSlot = null;
717717
} else if (iterNode != null) {
718718
frameOnStackMarkerSlot = environment.declareVar(environment.allocateLocalTemp("frame_on_stack_marker"));
719-
frameOnStackMarkerSlotStack.push(frameOnStackMarkerSlot);
720719

720+
frameOnStackMarkerSlotStack.push(frameOnStackMarkerSlot);
721721
try {
722722
blockTranslated = iterNode.accept(this);
723723
} finally {

0 commit comments

Comments
 (0)