Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Removes redundant whitespace in action result

Daniel T.a6dc763f82e2
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 479ca224d..9cfd79105 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -501,11 +501,9 @@ Explain the content of the page and that the requested information is not availa
else:
msg = f'🔍 Scrolled {direction} the page by one page'
long_term_memory = f'Scrolled {direction} the page by one page'
-
+
logger.info(msg)
- return ActionResult(
- extracted_content=msg, include_in_memory=True, long_term_memory=long_term_memory
- )
+ return ActionResult(extracted_content=msg, include_in_memory=True, long_term_memory=long_term_memory)
# send keys
@self.registry.action(