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:
parent
81b604fb00
commit
b4e362d444
1 changed files with 2 additions and 2 deletions
|
@ -1721,7 +1721,7 @@ module DRb
|
|||
client_uri = client.uri
|
||||
@exported_uri << client_uri unless @exported_uri.include?(client_uri)
|
||||
end
|
||||
last_invoke_method = nil
|
||||
_last_invoke_method = nil
|
||||
loop do
|
||||
begin
|
||||
succ = false
|
||||
|
@ -1734,7 +1734,7 @@ module DRb
|
|||
rescue Exception => e
|
||||
error_print(e) if verbose
|
||||
ensure
|
||||
last_invoke_method = invoke_method
|
||||
_last_invoke_method = invoke_method
|
||||
client.close unless succ
|
||||
if Thread.current['DRb']['stop_service']
|
||||
shutdown
|
||||
|
|
Loading…
Reference in a new issue