summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/compile.c b/compile.c
index e1c3432a6c..e35360a9e1 100644
--- a/compile.c
+++ b/compile.c
@@ -3767,13 +3767,8 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
/* count argc */
}
- if (argc == 1) {
- COMPILE(args, "yield with an arg", node->nd_head);
- }
- else {
- compile_array(iseq, args, node->nd_head, Qfalse);
- POP_ELEMENT(args);
- }
+ compile_array(iseq, args, node->nd_head, Qfalse);
+ POP_ELEMENT(args);
debugs("argc: %d\n", argc);
}
else {