diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-07 09:44:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 09:44:48 -0400 |
commit | 4e874ed5932c8d912e5ad9cf7822c216a5bc9266 (patch) | |
tree | e30a0565ff19c9eef6444c3ccc270094af4ef068 /synapse/rest/consent | |
parent | Add health check endpoint (#8048) (diff) | |
download | synapse-4e874ed5932c8d912e5ad9cf7822c216a5bc9266.tar.xz |
Remove unnecessary maybeDeferred calls (#8044)
Diffstat (limited to 'synapse/rest/consent')
-rw-r--r-- | synapse/rest/consent/consent_resource.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/rest/consent/consent_resource.py b/synapse/rest/consent/consent_resource.py index 4386eb4e72..b3e4d5612e 100644 --- a/synapse/rest/consent/consent_resource.py +++ b/synapse/rest/consent/consent_resource.py @@ -22,8 +22,6 @@ from os import path import jinja2 from jinja2 import TemplateNotFound -from twisted.internet import defer - from synapse.api.errors import NotFoundError, StoreError, SynapseError from synapse.config import ConfigError from synapse.http.server import DirectServeHtmlResource, respond_with_html @@ -135,7 +133,7 @@ class ConsentResource(DirectServeHtmlResource): else: qualified_user_id = UserID(username, self.hs.hostname).to_string() - u = await defer.maybeDeferred(self.store.get_user_by_id, qualified_user_id) + u = await self.store.get_user_by_id(qualified_user_id) if u is None: raise NotFoundError("Unknown user") |