From 7b353541d0f38440044cd88d6eac78eea07476fb Mon Sep 17 00:00:00 2001 From: syeopite Date: Wed, 24 Jan 2024 19:07:06 -0800 Subject: [PATCH] Remove unreachable code --- src/invidious/yt_backend/connection_pool.cr | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.cr index 313092ade..3d1b92e18 100644 --- a/src/invidious/yt_backend/connection_pool.cr +++ b/src/invidious/yt_backend/connection_pool.cr @@ -27,8 +27,6 @@ struct YoutubeConnectionPool def client(region = nil, &block) if !CONFIG.http_proxy && region conn = make_client(url, region, force_resolve = true) - conn.proxy = make_configured_http_proxy_client() if CONFIG.http_proxy - response = yield conn else # Proxy needs to be reinstated every time we get a client from the pool