From f72450aeb23a1a553299157f2a070eb421994b2c Mon Sep 17 00:00:00 2001 From: Pierre Jambet Date: Mon, 16 Dec 2024 17:11:44 -0500 Subject: [PATCH] connection_manager: remove unnecessary variable (#1018) The `detail` variable was created twice, it seems to have been an artifact of a previous refactor --- lib/dalli/protocol/connection_manager.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dalli/protocol/connection_manager.rb b/lib/dalli/protocol/connection_manager.rb index fe8bd911..1695ae1e 100644 --- a/lib/dalli/protocol/connection_manager.rb +++ b/lib/dalli/protocol/connection_manager.rb @@ -212,7 +212,6 @@ def memcached_socket end def log_warn_message(err_or_string) - detail = err_or_string.is_a?(String) ? err_or_string : "#{err_or_string.class}: #{err_or_string.message}" Dalli.logger.warn do detail = err_or_string.is_a?(String) ? err_or_string : "#{err_or_string.class}: #{err_or_string.message}" "#{name} failed (count: #{@fail_count}) #{detail}"