From 229286be544e76771d2a64637b3c692e51cbd878 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 18 May 2018 06:27:05 +0000 Subject: quiet mismatched indentation warnings Ruby trunk started warning about more mismatched indentations starting around r62836. --- lib/rainbows/response.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/rainbows/response.rb') diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index 62dfa39..a76821f 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -91,8 +91,8 @@ module Rainbows::Response body = write_headers(status, headers, alive, body) write_body_each(body) if body body - ensure - body.close if body.respond_to?(:close) + ensure + body.close if body.respond_to?(:close) end end include Each @@ -102,8 +102,8 @@ module Rainbows::Response def write_body_file(body, range) io = body_to_io(body) range ? sendfile(io, range[0], range[1]) : sendfile(io, 0) - ensure - close_if_private(io) + ensure + close_if_private(io) end end include Sendfile @@ -129,8 +129,8 @@ module Rainbows::Response # isn't used or available. def write_body_stream(body) COPY_STREAM.copy_stream(io = body_to_io(body), self) - ensure - close_if_private(io) + ensure + close_if_private(io) end else # ! COPY_STREAM alias write_body_stream write_body_each @@ -199,8 +199,8 @@ module Rainbows::Response write_body_stream(body) if body end body - ensure - body.close if body.respond_to?(:close) + ensure + body.close if body.respond_to?(:close) end module ToPath -- cgit v1.2.3-24-ge0c7