about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-01 03:19:52 +0000
committerEric Wong <e@80x24.org>2015-12-01 03:19:52 +0000
commit8442dd48690ec64766082194ca5f744248fabf57 (patch)
treed38909a1ec4ea078b7466615ec6c5a0472be330c /lib
parentc51c7c97d83ecfc7cde7954f6faa61756f650d5d (diff)
downloadyahns-8442dd48690ec64766082194ca5f744248fabf57.tar.gz
This typo would've only be triggered if the sendfile gem itself
turns out to be buggy and returns an undocumented return code.
Diffstat (limited to 'lib')
-rw-r--r--lib/yahns/wbuf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/wbuf.rb b/lib/yahns/wbuf.rb
index 9888a8c..1a24aab 100644
--- a/lib/yahns/wbuf.rb
+++ b/lib/yahns/wbuf.rb
@@ -71,7 +71,7 @@ class Yahns::Wbuf # :nodoc:
       @busy = rv
       return rv
     else
-      raise "BUG: #{rv.nil ? "EOF" : rv.inspect} on tmpio " \
+      raise "BUG: #{rv.nil? ? "EOF" : rv.inspect} on tmpio " \
             "sf_offset=#@sf_offset sf_count=#@sf_count"
     end while @sf_count > 0