Skip to content

Commit 46f7ca9

Browse files
committed
Remove useless intermediary variable in youtube_api.cr
This fixes an ameba warning
1 parent e85bc3e commit 46f7ca9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/invidious/yt_backend/youtube_api.cr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,9 @@ module YoutubeAPI
416416
# Send the POST request
417417
if {{ !flag?(:disable_quic) }} && CONFIG.use_quic
418418
# Using QUIC client
419-
response = YT_POOL.client(client_config.proxy_region,
419+
body = YT_POOL.client(client_config.proxy_region,
420420
&.post(url, headers: headers, body: data.to_json)
421-
)
422-
body = response.body
421+
).body
423422
else
424423
# Using HTTP client
425424
body = YT_POOL.client(client_config.proxy_region) do |client|

0 commit comments

Comments
 (0)