Skip to content
This repository
Browse code

Merge pull request #5112 from nupurjain/activesupport_cache_refactor

suggested changes.
  • Loading branch information...
commit 67a5157974ed9809570e2b29b69b59b85a4c7c52 2 parents e7c6cd3 + f0baa1c
Santiago Pastorino authored February 21, 2012
6  activesupport/lib/active_support/cache.rb
@@ -382,11 +382,7 @@ def exist?(name, options = nil)
382 382
         options = merged_options(options)
383 383
         instrument(:exist?, name) do |payload|
384 384
           entry = read_entry(namespaced_key(name, options), options)
385  
-          if entry && !entry.expired?
386  
-            true
387  
-          else
388  
-            false
389  
-          end
  385
+          entry && !entry.expired?
390 386
         end
391 387
       end
392 388
 

0 notes on commit 67a5157

Please sign in to comment.
Something went wrong with that request. Please try again.