diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-17 11:58:51 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-17 11:58:51 +0000 |
commit | 73d128ff2c58d1c3029378a872174f03e4dd3541 (patch) | |
tree | 17bd29b74e297dee116b87149132271edd69e0ad /lib | |
parent | c5fd4cd7329c325af826195ab90a3e9725a94802 (diff) | |
download | ruby-73d128ff2c58d1c3029378a872174f03e4dd3541.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ftp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index cafe39fad0..cfd72ee4e0 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -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 |