Skip to content

Commit e82b33b

Browse files
committed
Fix unused variable warning.
Looking at the code, it looks like it caught an actual bug. ``` protocol-http-0.47.1/lib/protocol/http/body/stream.rb:263: warning: assigned but unused variable - buffer ```
1 parent 8160d0f commit e82b33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/protocol/http/body/stream.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def gets(separator = NEWLINE, limit = nil, chomp: false)
263263
buffer = @buffer
264264
@buffer = nil
265265

266-
return @buffer
266+
return buffer
267267
end
268268
end
269269

0 commit comments

Comments
 (0)