forked from MirrorHub/synapse
update with newer coding style
This commit is contained in:
parent
5914fd09c7
commit
c8dc740a94
2 changed files with 3 additions and 3 deletions
|
@ -851,7 +851,7 @@ class E2eKeysHandler(object):
|
|||
user_id, signed_users
|
||||
)
|
||||
|
||||
defer.returnValue({"failures": failures})
|
||||
return {"failures": failures}
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _get_e2e_cross_signing_verify_key(self, user_id, key_type, from_user_id=None):
|
||||
|
|
|
@ -274,7 +274,7 @@ class SigningKeyUploadServlet(RestServlet):
|
|||
)
|
||||
|
||||
result = yield self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body)
|
||||
return (200, result)
|
||||
return 200, result
|
||||
|
||||
|
||||
class SignaturesUploadServlet(RestServlet):
|
||||
|
@ -324,7 +324,7 @@ class SignaturesUploadServlet(RestServlet):
|
|||
result = yield self.e2e_keys_handler.upload_signatures_for_device_keys(
|
||||
user_id, body
|
||||
)
|
||||
defer.returnValue((200, result))
|
||||
return 200, result
|
||||
|
||||
|
||||
def register_servlets(hs, http_server):
|
||||
|
|
Loading…
Reference in a new issue