mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-22 00:05:57 -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 & @addresses).empty?
|
||||
(Array(resolver_addresses) & @addresses).empty?
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user