diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-02 17:37:22 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-02 17:37:22 -0800 |
commit | 9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd (patch) | |
tree | 7918d54946cb23294f87e5d8a07b27b298262c82 /lib/unicorn/tee_input.rb | |
parent | e597e594ad88dc02d70f7d3521d0d3bdc23739bb (diff) | |
download | unicorn-9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd.tar.gz |
for i in `git ls-files '*.rb'`; do ruby -w -c $i; done
Diffstat (limited to 'lib/unicorn/tee_input.rb')
-rw-r--r-- | lib/unicorn/tee_input.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index a038a84..6d37f87 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -118,7 +118,7 @@ private end def tee(buffer) - if buffer && (n = buffer.size) > 0 + if buffer && buffer.size > 0 @tmp.write(buffer) @tmp.seek(0, IO::SEEK_END) # workaround FreeBSD/OSX + MRI 1.8.x bug end |