LibWeb/HTML: Remove unnecessary verification for location_url error

There is a check shortly after this, so there is no need to crash in the
event of an error.
This commit is contained in:
rmg-x 2025-03-09 09:17:53 -05:00 committed by Jelle Raaijmakers
commit 798250d3e2
Notes: github-actions[bot] 2025-03-10 09:47:28 +00:00

View file

@ -1020,10 +1020,9 @@ static WebIDL::ExceptionOr<Navigable::NavigationParamsVariant> create_navigation
// 14. Set locationURL to response's location URL given currentURL's fragment.
location_url = response_holder->response()->location_url(current_url.fragment());
VERIFY(!location_url.is_error());
// 15. If locationURL is failure or null, then break.
if (location_url.is_error() || !location_url.value().has_value()) {
dbgln("Received bad location_url when creating navigation params");
break;
}