lib/httpx/response.rb in httpx-0.24.3 vs lib/httpx/response.rb in httpx-0.24.4
- old
+ new
@@ -299,10 +299,10 @@
aux.close
@state = :buffer
end
end
- return unless %i[memory buffer].include?(@state)
+ nil unless %i[memory buffer].include?(@state)
end
def _with_same_buffer_pos
return yield unless @buffer && @buffer.respond_to?(:pos)