This typo would've only be triggered if the sendfile gem itself
turns out to be buggy and returns an undocumented return code.
---
 lib/yahns/wbuf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
EW

--
unsubscribe: yahns-public+unsubscr...@yhbt.net
archive: http://yhbt.net/yahns-public/

Reply via email to