diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-20 16:47:35 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-20 16:47:35 +0100 |
commit | 139fe30f47aabd3ca8cce0f8d8c961348188b90b (patch) | |
tree | eec3f00d54c7482261ee5d416251542e116c1c20 | |
parent | Fix bug in generating current token (diff) | |
download | synapse-139fe30f47aabd3ca8cce0f8d8c961348188b90b.tar.xz |
Remember to cast to bool
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index c01fcd3d59..600d0589fd 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -116,7 +116,7 @@ class GroupsSyncResult(collections.namedtuple("GroupsSyncResult", [ __slots__ = [] def __nonzero__(self): - return self.join or self.invite or self.leave + return bool(self.join or self.invite or self.leave) class SyncResult(collections.namedtuple("SyncResult", [ |