Remove unnecessary parentheses around tuples returned from methods (#10889)

This commit is contained in:
Andrew Morgan 2021-09-23 11:59:07 +01:00 committed by GitHub
parent 26f2bfedbf
commit aa2c027792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 33 additions and 32 deletions

View file

@ -1495,7 +1495,7 @@ class EventsWorkerStore(SQLBaseStore):
if not res:
raise SynapseError(404, "Could not find event %s" % (event_id,))
return (int(res["topological_ordering"]), int(res["stream_ordering"]))
return int(res["topological_ordering"]), int(res["stream_ordering"])
async def get_next_event_to_expire(self) -> Optional[Tuple[str, int]]:
"""Retrieve the entry with the lowest expiry timestamp in the event_expiry