lib/httpx/resolver/resolver.rb in httpx-0.19.3 vs lib/httpx/resolver/resolver.rb in httpx-0.19.4

- old
+ new

@@ -70,10 +70,10 @@ def early_resolve(connection, hostname: connection.origin.host) addresses = @resolver_options[:cache] && (connection.addresses || HTTPX::Resolver.nolookup_resolve(hostname)) return unless addresses - addresses.select! { |addr| addr.family == @family } + addresses = addresses.select { |addr| addr.family == @family } return if addresses.empty? emit_addresses(connection, @family, addresses) end