mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-27 00:03:01 -05:00
force variable that may be nil to array for Array#&
This commit is contained in:
parent
b8d97cc414
commit
cc441b33d8
@ -200,7 +200,7 @@ module HTTPX
|
|||||||
|
|
||||||
resolver_addresses = Resolver.nolookup_resolve(@hostname)
|
resolver_addresses = Resolver.nolookup_resolve(@hostname)
|
||||||
|
|
||||||
(resolver_addresses & @addresses).empty?
|
(Array(resolver_addresses) & @addresses).empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
# :nocov:
|
# :nocov:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user