DEV: Rubocop fix

This commit is contained in:
Jarek Radosz 2020-06-01 06:07:07 +02:00
parent 7df688d108
commit 27ad562ff5
1 changed files with 2 additions and 2 deletions

View File

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