aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-18 15:52:40 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-18 15:52:40 +0900
commit067fc779c4560fff4812614a2f78f9248f3e55f8 (patch)
treecee0bb4efcd328b3f7999e0bd3b04738a559a8c8 /activesupport/lib/active_support/cache
parent60c550370a0a915d7a74e1c128d3b233ea5aca7b (diff)
downloadrails-067fc779c4560fff4812614a2f78f9248f3e55f8.tar.gz
rails-067fc779c4560fff4812614a2f78f9248f3e55f8.tar.bz2
rails-067fc779c4560fff4812614a2f78f9248f3e55f8.zip
Fix "warning: assigned but unused variable - key"
Ref: https://travis-ci.org/rails/rails/jobs/303840778#L1974
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r--activesupport/lib/active_support/cache/redis_cache_store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/redis_cache_store.rb b/activesupport/lib/active_support/cache/redis_cache_store.rb
index 358de9203d..2cbeaef6fa 100644
--- a/activesupport/lib/active_support/cache/redis_cache_store.rb
+++ b/activesupport/lib/active_support/cache/redis_cache_store.rb
@@ -303,7 +303,7 @@ module ActiveSupport
keys_to_names = names.map { |name| [ normalize_key(name, options), name ] }.to_h
values = redis.mget(*keys_to_names.keys)
- keys_to_names.zip(values).each_with_object({}) do |((key, name), value), results|
+ keys_to_names.zip(values).each_with_object({}) do |((_, name), value), results|
if value
entry = deserialize_entry(value)
unless entry.nil? || entry.expired? || entry.mismatched?(normalize_version(name, options))