We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f46655 commit 519c227Copy full SHA for 519c227
src/invidious/helpers/static_file_handler.cr
@@ -175,8 +175,7 @@ module Kemal
175
176
if @cached_files.sum(&.[1][:data].bytesize) + (size = File.size(file_path)) < CACHE_LIMIT
177
data = Bytes.new(size)
178
-
179
- File.open(file_path) { |f| f.read(data) }
+ File.open(file_path, &.read(data))
180
181
filestat = File.info(file_path)
182
0 commit comments