mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
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:
parent
b43bb2429a
commit
e95096d2a9
Notes:
github-actions[bot]
2025-01-15 07:47:49 +00:00
Author: https://github.com/trflynn89
Commit: e95096d2a9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3257
Reviewed-by: https://github.com/gmta ✅
3 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue