mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	ruff: Fix RUF015 Prefer next(iter(…)) over list(…)[0].
				
					
				
			Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 0efc662eab)
			
			
This commit is contained in:
		
				
					committed by
					
						 Alex Vandiver
						Alex Vandiver
					
				
			
			
				
	
			
			
			
						parent
						
							a8d6c44db4
						
					
				
				
					commit
					2e9544a9a5
				
			| @@ -530,7 +530,7 @@ def send_peer_subscriber_events( | ||||
|                     # This optimization depends on all public streams | ||||
|                     # having the same peers for any single user, which | ||||
|                     # isn't the case for private streams. | ||||
|                     altered_user_id = list(altered_user_ids)[0] | ||||
|                     [altered_user_id] = altered_user_ids | ||||
|                     user_streams[altered_user_id].add(stream_id) | ||||
|                 else: | ||||
|                     event = dict( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user