xml: Remove validity check on URL created with file scheme

It is not possible for this to return an invalid URL.
This commit is contained in:
Shannon Booth 2025-02-16 14:03:15 +13:00 committed by Tim Flynn
parent 2c8dab36f3
commit c86b5068d0
Notes: github-actions[bot] 2025-02-19 13:03:25 +00:00

View file

@ -434,11 +434,6 @@ static void do_run_tests(XML::Document& document)
path_builder.append(suite.attributes.find("URI")->value);
auto url = URL::create_with_file_scheme(path_builder.string_view());
if (!url.is_valid()) {
warnln("Invalid URL {}", path_builder.string_view());
s_test_results.set(path_builder.string_view(), TestResult::RunnerFailed);
continue;
}
auto file_path = URL::percent_decode(url.serialize_path());
auto file_result = Core::File::open(file_path, Core::File::OpenMode::Read);