http_spew RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] fix mismatched indentation warnings
@ 2020-02-22 23:21 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-02-22 23:21 UTC (permalink / raw)
  To: http_spew-public

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

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

only message in thread, other threads:[~2020-02-22 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 23:21 [PATCH] fix mismatched indentation warnings Eric Wong

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