mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 18:39:22 -05:00
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.
This commit is contained in:
parent
3557cf34dc
commit
ad882cd54d
@ -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, _):
|
||||
|
Loading…
Reference in New Issue
Block a user