From 3cfe215c01066fa58433af715c162711fffe394a Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 19 Apr 2025 16:44:08 +1200 Subject: [PATCH] LibCore: Remove URL validity check for parsing URL's Now that URL does not implicitly construct from a String, it is safe to rely on always being passed a valid URL. --- Libraries/LibCore/Proxy.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Libraries/LibCore/Proxy.h b/Libraries/LibCore/Proxy.h index c014fb6ef28..7524716cf08 100644 --- a/Libraries/LibCore/Proxy.h +++ b/Libraries/LibCore/Proxy.h @@ -27,9 +27,6 @@ struct ProxyData { static ErrorOr parse_url(URL::URL const& url) { - if (!url.is_valid()) - return Error::from_string_literal("Invalid proxy URL"); - ProxyData proxy_data; if (url.scheme() != "socks5") return Error::from_string_literal("Unsupported proxy type");