Skip to content

Commit 67a5157

Browse files
committed
Merge pull request rails#5112 from nupurjain/activesupport_cache_refactor
suggested changes.
2 parents e7c6cd3 + f0baa1c commit 67a5157

File tree

1 file changed

+1
-5
lines changed
  • activesupport/lib/active_support

1 file changed

+1
-5
lines changed

activesupport/lib/active_support/cache.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,7 @@ def exist?(name, options = nil)
382382
options = merged_options(options)
383383
instrument(:exist?, name) do |payload|
384384
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?
390386
end
391387
end
392388

0 commit comments

Comments
 (0)