From 27ad562ff57faef4307df1dfc14091e8ae1f3df7 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 1 Jun 2020 06:07:07 +0200 Subject: [PATCH] DEV: Rubocop fix --- lib/file_store/base_store.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/file_store/base_store.rb b/lib/file_store/base_store.rb index 483277618f7..7d22640b137 100644 --- a/lib/file_store/base_store.rb +++ b/lib/file_store/base_store.rb @@ -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