Skip to content

Commit

Permalink
connection_manager: remove unnecessary variable (#1018)
Browse files Browse the repository at this point in the history
The `detail` variable was created twice, it seems
to have been an artifact of a previous refactor
  • Loading branch information
pjambet authored Dec 16, 2024
1 parent 06be66d commit f72450a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/dalli/protocol/connection_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f72450a

Please sign in to comment.