Skip to content

Commit f42c467

Browse files
Formatting.
1 parent 0d9d06c commit f42c467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/protocol/http/body/streamable.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def call(stream)
127127

128128
# Ownership of the stream is passed into the block, in other words, the block is responsible for closing the stream.
129129
block.call(stream)
130-
rescue => error
131-
# If, for some reason, the block raises an error, we assume it may not have closed the stream, so we close it here:
132-
stream.close
133-
raise
130+
rescue => error
131+
# If, for some reason, the block raises an error, we assume it may not have closed the stream, so we close it here:
132+
stream.close
133+
raise
134134
end
135135

136136
# Close the input. The streaming body will eventually read all the input.

0 commit comments

Comments
 (0)