DEV: Rubocop fix

This commit is contained in:
Jarek Radosz 2020-06-01 06:07:07 +02:00
parent 7df688d108
commit 27ad562ff5

View File

@ -151,9 +151,9 @@ module FileStore
# Remove all but CACHE_MAXIMUM_SIZE most recent files # Remove all but CACHE_MAXIMUM_SIZE most recent files
files = Dir.glob("#{CACHE_DIR}*") files = Dir.glob("#{CACHE_DIR}*")
files.sort_by! do |file| files.sort_by! do |f|
begin begin
File.mtime(file) File.mtime(f)
rescue Errno::ENOENT rescue Errno::ENOENT
Time.new(0) Time.new(0)
end end