From ba86011fab089731937531b232efc42cf34f6360 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 26 Dec 2022 09:01:54 -0500 Subject: [PATCH] LibWeb: Add missing return statement in an element scrolling error case --- Userland/Libraries/LibWeb/DOM/Element.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index bb98edabc5..6962fea8d3 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -1193,7 +1193,7 @@ static ErrorOr scroll_an_element_into_view(DOM::Element& element, Bindings (void)inline_; if (!element.document().browsing_context()) - Error::from_string_view("Element has no browsing context."sv); + return Error::from_string_view("Element has no browsing context."sv); auto* page = element.document().browsing_context()->page(); if (!page)