diff options
author | Yusuke Endoh <[email protected]> | 2022-01-17 14:56:11 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2022-01-17 14:56:11 +0900 |
commit | b4e362d444a8a9b5d629f32eeaa72293bcf7482d (patch) | |
tree | 2502f3041bf926c258089d77baf8521d7ebbd986 /lib/drb | |
parent | 81b604fb005b2dfa9601e0dabcdacfca6d8f3fba (diff) |
lib/drb/drb.rb: Prevent a "warning: assigned but unused variable"
... by replacing the variable with a underscore-prefixed name
Diffstat (limited to 'lib/drb')
-rw-r--r-- | lib/drb/drb.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 2219f5eb4d..23181bb834 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -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 |