mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 13:33:44 +08:00
DEV: Rubocop fix
This commit is contained in:
parent
7df688d108
commit
27ad562ff5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user