1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

LibWeb: Remove more DeprecatedString null state remnants

This commit is contained in:
Ali Mohammad Pur 2023-10-13 22:50:34 +03:30 committed by Tim Flynn
parent 988c6568a9
commit 0937d88869
4 changed files with 7 additions and 7 deletions

View file

@ -150,7 +150,7 @@ DeprecatedString Element::deprecated_get_attribute(StringView name) const
{
auto maybe_attribute = get_attribute(name);
if (!maybe_attribute.has_value())
return {};
return DeprecatedString::empty();
return maybe_attribute->to_deprecated_string();
}