diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-09-23 11:59:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 11:59:07 +0100 |
commit | aa2c027792d04c36b17866710e95a41d31f5d99c (patch) | |
tree | a4fedd511f23f3224c0c3fdf663b28c27acfcdab /synapse/handlers/receipts.py | |
parent | Factor out a separate `EventContext.for_outlier` (#10883) (diff) | |
download | synapse-aa2c027792d04c36b17866710e95a41d31f5d99c.tar.xz |
Remove unnecessary parentheses around tuples returned from methods (#10889)
Diffstat (limited to 'synapse/handlers/receipts.py')
-rw-r--r-- | synapse/handlers/receipts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index 5881f09ebd..f21f33ada2 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -238,7 +238,7 @@ class ReceiptEventSource(EventSource[int, JsonDict]): if self.config.experimental.msc2285_enabled: events = ReceiptEventSource.filter_out_hidden(events, user.to_string()) - return (events, to_key) + return events, to_key async def get_new_events_as( self, from_key: int, service: ApplicationService @@ -270,7 +270,7 @@ class ReceiptEventSource(EventSource[int, JsonDict]): events.append(event) - return (events, to_key) + return events, to_key def get_current_key(self, direction: str = "f") -> int: return self.store.get_max_receipt_stream_id() |