LibURL: Remove ErrorOr from get_public_suffix

The caller only expects ASCII and let's ignore any OOM.
This commit is contained in:
Shannon Booth 2025-06-28 20:53:51 +12:00 committed by Tim Ledbetter
commit e6ecafea84
Notes: github-actions[bot] 2025-06-29 11:49:18 +00:00
2 changed files with 17 additions and 17 deletions

View file

@ -498,7 +498,7 @@ bool is_public_suffix(StringView host)
Optional<String> get_public_suffix(StringView host)
{
return MUST(PublicSuffixData::the()->get_public_suffix(host));
return PublicSuffixData::the()->get_public_suffix(host);
}
// https://github.com/publicsuffix/list/wiki/Format#algorithm