diff options
author | David Baker <dave@matrix.org> | 2016-07-12 14:15:10 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-07-12 14:15:10 +0100 |
commit | c55ad2e3755487727e8760e7aab2fc21182d5948 (patch) | |
tree | 8b3d06a10f0756d3065ff30970f245c0402e9ac7 /synapse/rest | |
parent | on_OPTIONS isn't neccessary (diff) | |
download | synapse-c55ad2e3755487727e8760e7aab2fc21182d5948.tar.xz |
be more pythonic
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v2_alpha/account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 64e9ae0c45..47f78eba8c 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -139,7 +139,7 @@ class ThreepidRequestTokenRestServlet(RestServlet): if k not in body: absent.append(k) - if len(absent) > 0: + if absent: raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM) existingUid = yield self.hs.get_datastore().get_user_id_by_threepid( |