http_spew RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@yhbt.net>
To: http_spew-public@yhbt.net
Subject: [PATCH] fix mismatched indentation warnings
Date: Sat, 22 Feb 2020 23:21:05 +0000	[thread overview]
Message-ID: <20200222232105.15303-1-e@yhbt.net> (raw)

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

                 reply	other threads:[~2020-02-22 23:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/http_spew/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200222232105.15303-1-e@yhbt.net \
    --to=e@yhbt.net \
    --cc=http_spew-public@yhbt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/http_spew.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox