mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:54:53 -04:00
Remove unnecessary parentheses around return statements (#5931)
Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
This commit is contained in:
parent
4fca313389
commit
4548d1f87e
81 changed files with 287 additions and 286 deletions
|
@ -118,7 +118,7 @@ class RelationSendServlet(RestServlet):
|
|||
requester, event_dict=event_dict, txn_id=txn_id
|
||||
)
|
||||
|
||||
return (200, {"event_id": event.event_id})
|
||||
return 200, {"event_id": event.event_id}
|
||||
|
||||
|
||||
class RelationPaginationServlet(RestServlet):
|
||||
|
@ -198,7 +198,7 @@ class RelationPaginationServlet(RestServlet):
|
|||
return_value["chunk"] = events
|
||||
return_value["original_event"] = original_event
|
||||
|
||||
return (200, return_value)
|
||||
return 200, return_value
|
||||
|
||||
|
||||
class RelationAggregationPaginationServlet(RestServlet):
|
||||
|
@ -270,7 +270,7 @@ class RelationAggregationPaginationServlet(RestServlet):
|
|||
to_token=to_token,
|
||||
)
|
||||
|
||||
return (200, pagination_chunk.to_dict())
|
||||
return 200, pagination_chunk.to_dict()
|
||||
|
||||
|
||||
class RelationAggregationGroupPaginationServlet(RestServlet):
|
||||
|
@ -356,7 +356,7 @@ class RelationAggregationGroupPaginationServlet(RestServlet):
|
|||
return_value = result.to_dict()
|
||||
return_value["chunk"] = events
|
||||
|
||||
return (200, return_value)
|
||||
return 200, return_value
|
||||
|
||||
|
||||
def register_servlets(hs, http_server):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue