mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-04 10:11:05 +01: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__ = []
 | 
					    __slots__ = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __nonzero__(self):
 | 
					    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", [
 | 
					class SyncResult(collections.namedtuple("SyncResult", [
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user