From 6dd90cb902f43b32b0db204484d5e3df79ec0d0c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Feb 2011 13:34:58 -0800 Subject: remove unnecessary &block usage They needlessly allocate Proc objects --- lib/unicorn/oob_gc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/unicorn/oob_gc.rb') 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 -- cgit v1.2.3-24-ge0c7