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.
pull/4/merge
David Baker 8 years ago
parent 3557cf34dc
commit ad882cd54d
  1. 6
      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, _):

Loading…
Cancel
Save