mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-29 00:01:06 -05:00
removed patch for jruby < 9.4.5.0
This commit is contained in:
parent
5816debef5
commit
1bd7831c85
@ -81,17 +81,10 @@ module HTTPX
|
|||||||
@callbacks << callback
|
@callbacks << callback
|
||||||
end
|
end
|
||||||
|
|
||||||
if RUBY_ENGINE == "jruby" && JRUBY_VERSION < "9.4.5.0"
|
|
||||||
# https://github.com/jruby/jruby/issues/7976
|
|
||||||
def delete(callback)
|
|
||||||
@callbacks.delete(callback)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
def delete(callback)
|
def delete(callback)
|
||||||
@callbacks.delete(callback)
|
@callbacks.delete(callback)
|
||||||
@on_empty.call if @callbacks.empty?
|
@on_empty.call if @callbacks.empty?
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def no_callbacks?
|
def no_callbacks?
|
||||||
@callbacks.empty?
|
@callbacks.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user