mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	Use short syntax for 'File.open' block
This commit is contained in:
		| @@ -175,8 +175,7 @@ module Kemal | ||||
|  | ||||
|           if @cached_files.sum(&.[1][:data].bytesize) + (size = File.size(file_path)) < CACHE_LIMIT | ||||
|             data = Bytes.new(size) | ||||
|  | ||||
|             File.open(file_path) { |f| f.read(data) } | ||||
|             File.open(file_path, &.read(data)) | ||||
|  | ||||
|             filestat = File.info(file_path) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Samantaz Fox
					Samantaz Fox