mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-24 05:30:13 +00:00
Fix Ameba Lint/UselessAssign
This commit is contained in:
committed by
Émilien (perso)
parent
7749ea1956
commit
89a0761a19
@@ -106,8 +106,7 @@ Spectator.describe StaticAssetsHandler do
|
||||
file_link = "/#{File.basename(temporary_file.path)}"
|
||||
|
||||
# Make request
|
||||
headers = HTTP::Headers{"Range" => "bytes=0-2"}
|
||||
response = handle HTTP::Request.new("GET", file_link, headers)
|
||||
handle HTTP::Request.new("GET", file_link, HTTP::Headers{"Range" => "bytes=0-2"})
|
||||
|
||||
# Mutate file on disk
|
||||
temporary_file << "Something else"
|
||||
|
||||
Reference in New Issue
Block a user