lib/socketry/resolver/resolv.rb in socketry-0.4.0 vs lib/socketry/resolver/resolv.rb in socketry-0.5.0
- old
+ new
@@ -43,10 +43,10 @@
rescue ::Resolv::ResolvError
case timeout
when Integer, Float
@resolver.timeouts = timeout
when NilClass
- # no timeout
+ nil # no timeout
else raise TypeError, "expected Numeric, got #{timeout.class}"
end
begin
IPAddr.new(@resolver.getaddress(hostname).to_s)