yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
* [PATCH] wbuf: fix typo in bug check for sendfile gem
@ 2015-12-01  3:21 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-12-01  3:21 UTC (permalink / raw)
  To: yahns-public

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-01  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-01  3:21 [PATCH] wbuf: fix typo in bug check for sendfile gem Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/yahns.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).