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.
This commit is contained in:
Shannon Booth 2025-04-19 16:44:08 +12:00
parent 5e88c36630
commit 3cfe215c01

View file

@ -27,9 +27,6 @@ struct ProxyData {
static ErrorOr<ProxyData> 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");