diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp
index b84ec199af..01a7fa79e4 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp
@@ -50,7 +50,7 @@ DOM::ExceptionOr HTMLOptionsCollection::add(HTMLOptionOrOptGroupElement el
DOM::Node* parent = reference ? reference->parent() : root().ptr();
// 6. Pre-insert element into parent node before reference.
- TRY(parent->pre_insert(resolved_element, reference));
+ (void)TRY(parent->pre_insert(resolved_element, reference));
return {};
}