diff options
author | Eric Wong <e@80x24.org> | 2018-05-18 06:27:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-02 21:40:46 +0000 |
commit | 229286be544e76771d2a64637b3c692e51cbd878 (patch) | |
tree | a29be86e137e4619030fb19cdcaad1b60391c386 /lib/rainbows/response.rb | |
parent | de313da55531438b73c8cb54663ce0f8ab880465 (diff) | |
download | rainbows-229286be544e76771d2a64637b3c692e51cbd878.tar.gz |
Ruby trunk started warning about more mismatched indentations starting around r62836.
Diffstat (limited to 'lib/rainbows/response.rb')
-rw-r--r-- | lib/rainbows/response.rb | 16 |
1 files changed, 8 insertions, 8 deletions
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 |