1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

LibWeb: Add missing return statement in an element scrolling error case

This commit is contained in:
Timothy Flynn 2022-12-26 09:01:54 -05:00 committed by Tim Flynn
parent 88d0d0d90d
commit ba86011fab

View file

@ -1193,7 +1193,7 @@ static ErrorOr<void> 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)