diff options
author | Linus Groh <mail@linusgroh.de> | 2022-03-22 12:40:10 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-22 18:05:25 +0000 |
commit | 46bb547dd6120da007f17e5817c6cd50d682af8d (patch) | |
tree | 301f83ae795f941c90d048b24fbdbebd4e5a40b2 /Userland/Libraries/LibWeb/DOM | |
parent | a68d31debd103695c9d97e8db5b8a317d185ed35 (diff) | |
download | serenity-46bb547dd6120da007f17e5817c6cd50d682af8d.zip |
LibWeb: Convert ShadowRoot to use TRY for error propagation
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp b/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp index 3bb337b3d6..98965b475d 100644 --- a/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp +++ b/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp @@ -39,9 +39,7 @@ String ShadowRoot::inner_html() const // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml ExceptionOr<void> ShadowRoot::set_inner_html(String const& markup) { - auto result = DOMParsing::inner_html_setter(*this, markup); - if (result.is_exception()) - return result.exception(); + TRY(DOMParsing::inner_html_setter(*this, markup)); set_needs_style_update(true); return {}; |