Skip to content

Commit cb6b706

Browse files
committedJun 7, 2014
Cleanup runtime yield1
1 parent 271cae4 commit cb6b706

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎opal/corelib/runtime.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,8 @@
575575
throw Opal.LocalJumpError.$new("no block given");
576576
}
577577

578-
if (block.length > 1) {
579-
if (arg._isArray) {
580-
return block.apply(null, arg);
581-
}
582-
else {
583-
return block(arg);
584-
}
578+
if (block.length > 1 && arg._isArray) {
579+
return block.apply(null, arg);
585580
}
586581
else {
587582
return block(arg);

0 commit comments

Comments
 (0)
Please sign in to comment.