From 8442dd48690ec64766082194ca5f744248fabf57 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Dec 2015 03:19:52 +0000 Subject: wbuf: fix typo in bug check for sendfile gem 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(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7