diff options
author | Jason Robinson <jasonr@matrix.org> | 2019-09-09 16:40:40 +0300 |
---|---|---|
committer | Jason Robinson <jasonr@matrix.org> | 2019-09-09 16:40:40 +0300 |
commit | 8c03cd0e5f73fb59ee773dc6cce77f2dc4dab827 (patch) | |
tree | 7982184b0b43fc990f35df72b3decf8b655fcb26 /synapse/storage/registration.py | |
parent | Auto-fix a few code style issues (diff) | |
download | synapse-8c03cd0e5f73fb59ee773dc6cce77f2dc4dab827.tar.xz |
Simplify is_real_user_txn check to trust user_type is null if real user
Signed-off-by: Jason Robinson <jasonr@matrix.org>
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r-- | synapse/storage/registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 9387b29503..54b0846c54 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -358,7 +358,7 @@ class RegistrationWorkerStore(SQLBaseStore): retcol="user_type", allow_none=True, ) - return True if res is None or res == "" else False + return res is None def is_support_user_txn(self, txn, user_id): res = self._simple_select_one_onecol_txn( |