diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-24 17:54:53 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-24 17:54:53 +0000 |
commit | 6c058e32063b606b473f415ae6b68000f036ff94 (patch) | |
tree | 5a2e6516b123c0a531a9b12b04816f7e2cb58bf5 /synapse/handlers/auth.py | |
parent | Move buildkite config to the pipelines repo (#5943) (diff) | |
parent | Remove unnecessary parentheses around return statements (#5931) (diff) | |
download | synapse-6c058e32063b606b473f415ae6b68000f036ff94.tar.xz |
Remove unnecessary parentheses around return statements (#5931)
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index 9ce9ce4929..75e743458b 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -280,7 +280,7 @@ class AuthHandler(BaseHandler): creds, list(clientdict), ) - return (creds, clientdict, session["id"]) + return creds, clientdict, session["id"] ret = self._auth_dict_for_flows(flows, session) ret["completed"] = list(creds) @@ -722,7 +722,7 @@ class AuthHandler(BaseHandler): known_login_type = True is_valid = yield provider.check_password(qualified_user_id, password) if is_valid: - return (qualified_user_id, None) + return qualified_user_id, None if not hasattr(provider, "get_supported_login_types") or not hasattr( provider, "check_auth" @@ -766,7 +766,7 @@ class AuthHandler(BaseHandler): ) if canonical_user_id: - return (canonical_user_id, None) + return canonical_user_id, None if not known_login_type: raise SynapseError(400, "Unknown login type %s" % login_type) @@ -816,7 +816,7 @@ class AuthHandler(BaseHandler): result = (result, None) return result - return (None, None) + return None, None @defer.inlineCallbacks def _check_local_password(self, user_id, password): |