LibWeb: Mark a few calls to set_attribute as infallible

These cannot possibly throw an exception because the attribute names are
already known to be valid.
This commit is contained in:
Timothy Flynn 2025-01-14 19:42:12 -05:00 committed by Jelle Raaijmakers
commit e95096d2a9
Notes: github-actions[bot] 2025-01-15 07:47:49 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ public:
WebIDL::Long value();
void set_value(WebIDL::Long value)
{
set_attribute(AttributeNames::value, String::number(value)).release_value_but_fixme_should_propagate_errors();
MUST(set_attribute(AttributeNames::value, String::number(value)));
}
private: