diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-01-22 15:09:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 15:09:57 +0000 |
commit | ce84dd9e207d9ae88e4cf9ca8a9731fcac043969 (patch) | |
tree | 2dc8f2dda822d7970bd2f65835092c86fa896cad /synapse/storage | |
parent | Fixup warning about workers changes (diff) | |
download | synapse-ce84dd9e207d9ae88e4cf9ca8a9731fcac043969.tar.xz |
Remove unnecessary abstractions in admin handler (#6751)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/data_stores/main/registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/registration.py b/synapse/storage/data_stores/main/registration.py index cb4b2b39a0..49306642ed 100644 --- a/synapse/storage/data_stores/main/registration.py +++ b/synapse/storage/data_stores/main/registration.py @@ -291,7 +291,7 @@ class RegistrationWorkerStore(SQLBaseStore): desc="is_server_admin", ) - return res if res else False + return bool(res) if res else False def set_server_admin(self, user, admin): """Sets whether a user is an admin of this homeserver. |