diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-10 13:34:58 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-10 13:34:58 -0800 |
commit | 6dd90cb902f43b32b0db204484d5e3df79ec0d0c (patch) | |
tree | fb09529a54707bbb7e9993e30f4ab95e5e3db68e /lib/unicorn/stream_input.rb | |
parent | 1fd1234ca5ba3d84d2182c38b37322bd55f08882 (diff) | |
download | unicorn-6dd90cb902f43b32b0db204484d5e3df79ec0d0c.tar.gz |
remove unnecessary &block usage
They needlessly allocate Proc objects
Diffstat (limited to 'lib/unicorn/stream_input.rb')
-rw-r--r-- | lib/unicorn/stream_input.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/stream_input.rb b/lib/unicorn/stream_input.rb index fa2e902..90e1d6e 100644 --- a/lib/unicorn/stream_input.rb +++ b/lib/unicorn/stream_input.rb @@ -93,7 +93,7 @@ class Unicorn::StreamInput # # Executes the block for every ``line'' in *ios*, where lines are # separated by the global record separator ($/, typically "\n"). - def each(&block) + def each while line = gets yield line end |