1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix warning: assigned but unused variable

[Bug #14020][ruby-core:83313]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2017-10-17 11:58:51 +00:00
parent c5fd4cd732
commit 73d128ff2c

View file

@ -328,9 +328,9 @@ module Net
return Timeout.timeout(@open_timeout, OpenTimeout) {
if defined? SOCKSSocket and ENV["SOCKS_SERVER"]
@passive = true
sock = SOCKSSocket.open(host, port)
SOCKSSocket.open(host, port)
else
sock = Socket.tcp(host, port)
Socket.tcp(host, port)
end
}
end