From f0baa1c301d3206dbca9ad35c5260d8070497302 Mon Sep 17 00:00:00 2001 From: Nupur Jain Date: Tue, 21 Feb 2012 16:50:35 +0530 Subject: suggested changes. --- activesupport/lib/active_support/cache.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 26e737e917..d7408eff9f 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -382,11 +382,7 @@ module ActiveSupport options = merged_options(options) instrument(:exist?, name) do |payload| entry = read_entry(namespaced_key(name, options), options) - if entry && !entry.expired? - true - else - false - end + entry && !entry.expired? end end -- cgit v1.2.3