From b4e362d444a8a9b5d629f32eeaa72293bcf7482d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 17 Jan 2022 14:56:11 +0900 Subject: [PATCH] lib/drb/drb.rb: Prevent a "warning: assigned but unused variable" ... by replacing the variable with a underscore-prefixed name --- lib/drb/drb.rb | 4 ++-- 1 file 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