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

lib/drb/drb.rb: Prevent a "warning: assigned but unused variable"

... by replacing the variable with a underscore-prefixed name
This commit is contained in:
Yusuke Endoh 2022-01-17 14:56:11 +09:00
parent 81b604fb00
commit b4e362d444

View file

@ -1721,7 +1721,7 @@ module DRb
client_uri = client.uri client_uri = client.uri
@exported_uri << client_uri unless @exported_uri.include?(client_uri) @exported_uri << client_uri unless @exported_uri.include?(client_uri)
end end
last_invoke_method = nil _last_invoke_method = nil
loop do loop do
begin begin
succ = false succ = false
@ -1734,7 +1734,7 @@ module DRb
rescue Exception => e rescue Exception => e
error_print(e) if verbose error_print(e) if verbose
ensure ensure
last_invoke_method = invoke_method _last_invoke_method = invoke_method
client.close unless succ client.close unless succ
if Thread.current['DRb']['stop_service'] if Thread.current['DRb']['stop_service']
shutdown shutdown