1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove MemCacheStore#write_entry options nil check

It will always be a hash since ee51b51b60.
This commit is contained in:
Eugene Kenny 2020-09-13 22:50:27 +01:00
parent f04819972b
commit 1b2879404f

View file

@ -141,7 +141,7 @@ module ActiveSupport
# Write an entry to the cache.
def write_entry(key, entry, **options)
method = options && options[:unless_exist] ? :add : :set
method = options[:unless_exist] ? :add : :set
value = options[:raw] ? entry.value.to_s : entry
expires_in = options[:expires_in].to_i
if expires_in > 0 && !options[:raw]