0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2025-01-03 06:05:00 +01:00

Remember to cast to bool

This commit is contained in:
Erik Johnston 2017-07-20 16:47:35 +01:00
parent 4d793626ff
commit 139fe30f47

View file

@ -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", [