mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
Remove unnecessary parentheses around tuples returned from methods (#10889)
This commit is contained in:
parent
26f2bfedbf
commit
aa2c027792
22 changed files with 33 additions and 32 deletions
|
@ -40,7 +40,7 @@ class PasswordPolicyServlet(RestServlet):
|
|||
|
||||
def on_GET(self, request: Request) -> Tuple[int, JsonDict]:
|
||||
if not self.enabled or not self.policy:
|
||||
return (200, {})
|
||||
return 200, {}
|
||||
|
||||
policy = {}
|
||||
|
||||
|
@ -54,7 +54,7 @@ class PasswordPolicyServlet(RestServlet):
|
|||
if param in self.policy:
|
||||
policy["m.%s" % param] = self.policy[param]
|
||||
|
||||
return (200, policy)
|
||||
return 200, policy
|
||||
|
||||
|
||||
def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue