summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/enum.c b/enum.c
index 655cebeada..1e0ec9c30d 100644
--- a/enum.c
+++ b/enum.c
@@ -125,12 +125,7 @@ static VALUE
collect_i(i, tmp)
VALUE i, tmp;
{
- VALUE retval;
-
- retval = rb_yield(i);
- if (RTEST(retval)) {
- ary_push(tmp, retval);
- }
+ ary_push(tmp, rb_yield(i));
return Qnil;
}