Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/main/java/org/jruby/runtime/IRBlockBody.java
Original file line number Diff line number Diff line change
@@ -63,8 +63,6 @@ public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args)

@Override
public IRubyObject call(ThreadContext context, Block block, IRubyObject[] args, Block blockArg) {
if (block.type == Block.Type.LAMBDA) signature.checkArity(context.runtime, args);

return commonYieldPath(context, block, prepareArgumentsForCall(context, args, block.type), null, blockArg);
}

@@ -75,7 +73,6 @@ public IRubyObject yieldSpecific(ThreadContext context, Block block) {
} else {
IRubyObject[] args = IRubyObject.NULL_ARRAY;
if (block.type == Block.Type.LAMBDA) signature.checkArity(context.runtime, args);

return commonYieldPath(context, block, args, null, Block.NULL_BLOCK);
}
}

0 comments on commit 926c76a

Please sign in to comment.