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

@ -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: