From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4E0451F619 for ; Sat, 22 Feb 2020 23:21:05 +0000 (UTC) From: Eric Wong To: http_spew-public@yhbt.net Subject: [PATCH] fix mismatched indentation warnings Date: Sat, 22 Feb 2020 23:21:05 +0000 Message-Id: <20200222232105.15303-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Newer versions of Ruby warn about these :< --- lib/http_spew/class_methods.rb | 6 +++--- lib/http_spew/request.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/http_spew/class_methods.rb b/lib/http_spew/class_methods.rb index dda0e19..ca1afe2 100644 --- a/lib/http_spew/class_methods.rb +++ b/lib/http_spew/class_methods.rb @@ -81,9 +81,9 @@ module HTTP_Spew::ClassMethods pending = requests - ready error = HTTP_Spew::TimeoutError.new("request timed out") ready.concat(error_all(pending, error)) - ensure - w.close - r.close + ensure + w.close + r.close end def wait(need, requests, timeout) diff --git a/lib/http_spew/request.rb b/lib/http_spew/request.rb index 1647d23..0085024 100644 --- a/lib/http_spew/request.rb +++ b/lib/http_spew/request.rb @@ -72,9 +72,9 @@ class HTTP_Spew::Request timeout -= (Process.clock_gettime(Process::CLOCK_MONOTONIC) - t0) end rv - rescue => e - @input.respond_to?(:close) and @input.close rescue nil - self.error = e + rescue => e + @input.respond_to?(:close) and @input.close rescue nil + self.error = e end # returns a 3-element Rack response array on completion