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/storage/databases/main/stream.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/storage/databases/main/stream.py')
-rw-r--r-- | synapse/storage/databases/main/stream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/stream.py b/synapse/storage/databases/main/stream.py index 9a3b6f4acf..dc7884b1c0 100644 --- a/synapse/storage/databases/main/stream.py +++ b/synapse/storage/databases/main/stream.py @@ -624,7 +624,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore, metaclass=abc.ABCMeta): self._set_before_and_after(events, rows) - return (events, token) + return events, token async def get_recent_event_ids_for_room( self, room_id: str, limit: int, end_token: RoomStreamToken @@ -1242,7 +1242,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore, metaclass=abc.ABCMeta): self._set_before_and_after(events, rows) - return (events, token) + return events, token @cached() async def get_id_for_instance(self, instance_name: str) -> int: |