diff options
author | David Baker <dave@matrix.org> | 2017-03-01 18:08:51 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-03-01 18:08:51 +0000 |
commit | ad882cd54d8349750f363e6127eca14a2e52b2b6 (patch) | |
tree | e058870979dc2bfb0c83afb2842afdd5349a3a4a /synapse/handlers/auth.py | |
parent | Merge remote-tracking branch 'origin/develop' into dbkr/msisdn_signin (diff) | |
download | synapse-ad882cd54d8349750f363e6127eca14a2e52b2b6.tar.xz |
Just return the deferred straight off
defer.returnValue doth not maketh a generator: it would need a yield to be a generator, and this doesn't need a yield.
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index 448bc0b31f..2ea1d17ca5 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -309,13 +309,11 @@ class AuthHandler(BaseHandler): defer.returnValue(True) raise LoginError(401, "", errcode=Codes.UNAUTHORIZED) - @defer.inlineCallbacks def _check_email_identity(self, authdict, _): - defer.returnValue(self._check_threepid('email', authdict)) + return self._check_threepid('email', authdict) - @defer.inlineCallbacks def _check_msisdn(self, authdict, _): - defer.returnValue(self._check_threepid('msisdn', authdict)) + return self._check_threepid('msisdn', authdict) @defer.inlineCallbacks def _check_dummy_auth(self, authdict, _): |