mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibURL+LibWeb: Make URL::serialize return a String
Simplifying a bunch of uneeded error handling around the place.
This commit is contained in:
committed by
Sam Atkins
parent
d7ac0601ab
commit
0fa54c2327
@@ -22,7 +22,7 @@ static bool is_sanitized_url_the_same(StringView url)
|
||||
auto sanitized_url = WebView::sanitize_url(url);
|
||||
if (!sanitized_url.has_value())
|
||||
return false;
|
||||
return sanitized_url->to_string().value() == url;
|
||||
return sanitized_url->to_string() == url;
|
||||
}
|
||||
|
||||
TEST_CASE(invalid_url)
|
||||
|
||||
Reference in New Issue
Block a user