[ruby/resolv] _1 is not provided in Ruby 2.5
https://github.com/ruby/resolv/commit/83f18e2a49
This commit is contained in:
parent
7be0d50514
commit
36f67f6bbb
@ -89,8 +89,8 @@ class TestResolvDNS < Test::Unit::TestCase
|
|||||||
# If we get to this point, we have a valid t & u socket
|
# If we get to this point, we have a valid t & u socket
|
||||||
yield us.last, ts.last
|
yield us.last, ts.last
|
||||||
ensure
|
ensure
|
||||||
ts.each { _1.close }
|
ts.each(&:close)
|
||||||
us.each { _1.close }
|
us.each(&:close)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# Explicitly specified port, don't retry the bind.
|
# Explicitly specified port, don't retry the bind.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user