mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-03-05 05:39:59 +00:00
Fix Style/VerboseBlock issues
This commit is contained in:
@@ -173,7 +173,7 @@ module Kemal
|
||||
return
|
||||
end
|
||||
|
||||
if @cached_files.sum { |element| element[1][:data].bytesize } + (size = File.size(file_path)) < CACHE_LIMIT
|
||||
if @cached_files.sum(&.[1].[:data].bytesize) + (size = File.size(file_path)) < CACHE_LIMIT
|
||||
data = Bytes.new(size)
|
||||
File.open(file_path) do |file|
|
||||
file.read(data)
|
||||
|
||||
Reference in New Issue
Block a user