summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-09-23 11:59:07 +0100
committerGitHub <noreply@github.com>2021-09-23 11:59:07 +0100
commitaa2c027792d04c36b17866710e95a41d31f5d99c (patch)
treea4fedd511f23f3224c0c3fdf663b28c27acfcdab /synapse/handlers/message.py
parentFactor out a separate `EventContext.for_outlier` (#10883) (diff)
downloadsynapse-aa2c027792d04c36b17866710e95a41d31f5d99c.tar.xz
Remove unnecessary parentheses around tuples returned from methods (#10889)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 6cd694b2da..7a5d8e6f4e 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -666,7 +666,7 @@ class EventCreationHandler:
 
         self.validator.validate_new(event, self.config)
 
-        return (event, context)
+        return event, context
 
     async def _is_exempt_from_privacy_policy(
         self, builder: EventBuilder, requester: Requester
@@ -1004,7 +1004,7 @@ class EventCreationHandler:
 
         logger.debug("Created event %s", event.event_id)
 
-        return (event, context)
+        return event, context
 
     @measure_func("handle_new_client_event")
     async def handle_new_client_event(