From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 907CD20410 for ; Tue, 1 Dec 2015 03:21:30 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH] wbuf: fix typo in bug check for sendfile gem Date: Tue, 1 Dec 2015 03:21:30 +0000 Message-Id: <20151201032130.13496-1-e@80x24.org> List-Id: 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