ruby-changes:48084
From: kazu <ko1@a...>
Date: Tue, 17 Oct 2017 20:58:57 +0900 (JST)
Subject: [ruby-changes:48084] kazu:r60198 (trunk): Fix warning: assigned but unused variable
kazu 2017-10-17 20:58:51 +0900 (Tue, 17 Oct 2017) New Revision: 60198 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60198 Log: Fix warning: assigned but unused variable [Bug #14020][ruby-core:83313] Modified files: trunk/lib/net/ftp.rb Index: lib/net/ftp.rb =================================================================== --- lib/net/ftp.rb (revision 60197) +++ lib/net/ftp.rb (revision 60198) @@ -328,9 +328,9 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L328 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/