From 1bc6f594d3de8dbfb5c165835eaec99bd49327c8 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 11 Jun 1998 10:03:21 +0000 Subject: 1.1b9_25 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'enum.c') 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; } -- cgit v1.2.3