lib/httpx/resolver/native.rb in httpx-0.19.3 vs lib/httpx/resolver/native.rb in httpx-0.19.4
- old
+ new
@@ -117,10 +117,14 @@
end
private
def calculate_interests
- !@write_buffer.empty? || @queries.empty? ? :w : :r
+ return :w unless @write_buffer.empty?
+
+ return :r unless @queries.empty?
+
+ nil
end
def consume
dread if calculate_interests == :r
do_retry