about summary refs log tree commit homepage
path: root/lib/unicorn/oob_gc.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-10 13:34:58 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-10 13:34:58 -0800
commit6dd90cb902f43b32b0db204484d5e3df79ec0d0c (patch)
treefb09529a54707bbb7e9993e30f4ab95e5e3db68e /lib/unicorn/oob_gc.rb
parent1fd1234ca5ba3d84d2182c38b37322bd55f08882 (diff)
remove unnecessary &block usage
They needlessly allocate Proc objects
Diffstat (limited to 'lib/unicorn/oob_gc.rb')
-rw-r--r--lib/unicorn/oob_gc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/oob_gc.rb b/lib/unicorn/oob_gc.rb
index 8dc4dcf..402d4ed 100644
--- a/lib/unicorn/oob_gc.rb
+++ b/lib/unicorn/oob_gc.rb
@@ -38,8 +38,8 @@ module Unicorn
       [ status, headers, self ]
     end
 
-    def each(&block)
-      body.each(&block)
+    def each
+      body.each { |x| yield x }
     end
 
     # in Unicorn, this is closed _after_ the client socket