Skip to content

Commit 09915d7

Browse files
committed
Move guard comments inside branches
1 parent b3fc65f commit 09915d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/protocol/http/body/deflate.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def self.for(body, window_size = GZIP, level = DEFAULT_LEVEL)
110110
#
111111
# @returns [String | Nil] the compressed chunk or `nil` if the stream is closed.
112112
def read
113-
# Once the stream is finished, there is no more compressed output to produce.
114113
if @stream.finished?
114+
# Once the stream is finished, there is no more compressed output to produce.
115115
return nil
116116
end
117117

‎lib/protocol/http/body/stream.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def read_until(pattern, offset = 0, chomp: false)
200200
split_offset = pattern.bytesize - 1
201201

202202
@buffer ||= read_next
203-
# Without any buffered input, there is nothing to search for.
204203
if @buffer.nil?
204+
# Without any buffered input, there is nothing to search for.
205205
return nil
206206
end
207207

0 commit comments

Comments
 (0)