summary refs log tree commit homepage
path: root/lib/rainbows/max_body
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-06 01:42:31 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-06 01:42:31 +0000
commit44eb53f5a5f1ea2e5aee93d0caf995f42b3179f7 (patch)
tree4bb6d0e028d1b63b515f2ded3451020d82d9a51e /lib/rainbows/max_body
parent90a86c9822238f01e8d60c9303b9a0da64351c7f (diff)
kill some unnecessary &block usage
We were needlessly allocating objects even when using yield.
Diffstat (limited to 'lib/rainbows/max_body')
-rw-r--r--lib/rainbows/max_body/wrapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/max_body/wrapper.rb b/lib/rainbows/max_body/wrapper.rb
index 15faeeb..56ee9fd 100644
--- a/lib/rainbows/max_body/wrapper.rb
+++ b/lib/rainbows/max_body/wrapper.rb
@@ -7,7 +7,7 @@ class Rainbows::MaxBody::Wrapper
     @input, @limit, @rbuf = rack_input, limit, ''
   end
 
-  def each(&block)
+  def each
     while line = gets
       yield line
     end