From 067fc779c4560fff4812614a2f78f9248f3e55f8 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 18 Nov 2017 15:52:40 +0900 Subject: Fix "warning: assigned but unused variable - key" Ref: https://travis-ci.org/rails/rails/jobs/303840778#L1974 --- activesupport/lib/active_support/cache/redis_cache_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/cache') 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)) -- cgit v1.2.3