mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Remember to cast to bool
This commit is contained in:
parent
4d793626ff
commit
139fe30f47
@ -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", [
|
||||
|
Loading…
Reference in New Issue
Block a user