lib/httparty-icebox.rb in httparty-icebox-delooks-0.0.6 vs lib/httparty-icebox.rb in httparty-icebox-delooks-0.0.7
- old
+ new
@@ -220,11 +220,10 @@
def exists?(key)
File.exists?( @path.join(key) )
end
def stale?(key)
return true unless exists?(key)
- #Time.now - created(key) > @timeout
- false
+ Time.now - created(key) > @timeout
end
private
def created(key)
File.mtime( @path.join(key) )
end