mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
removing lonely operator, as it causes parsing errors in ruby <= 2.2
This commit is contained in:
parent
fcc1e2a2b8
commit
7a6e8c669d
@ -94,15 +94,8 @@ module HTTPX
|
||||
@io ||= IO.registry(@type).new(@uri, addrs, @options) # rubocop:disable Naming/MemoizedInstanceVariableName
|
||||
end
|
||||
|
||||
if RUBY_VERSION > "2.2"
|
||||
def addresses
|
||||
@io&.addresses
|
||||
end
|
||||
else
|
||||
def addresses
|
||||
return unless @io
|
||||
@io.addresses
|
||||
end
|
||||
def addresses
|
||||
@io && @io.addresses
|
||||
end
|
||||
|
||||
def mergeable?(addresses)
|
||||
|
Loading…
x
Reference in New Issue
Block a user