Permalink
Browse files

suggested changes.

  • Loading branch information...
1 parent 007c411 commit f0baa1c301d3206dbca9ad35c5260d8070497302 @nupurjain nupurjain committed Feb 21, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 activesupport/lib/active_support/cache.rb
@@ -382,11 +382,7 @@ def exist?(name, options = nil)
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

0 comments on commit f0baa1c

Please sign in to comment.