mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	ruff: Fix RUF051 Use pop instead of key in dict…del dict[key].
				
					
				
			Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							6e36c6de16
						
					
				
				
					commit
					67fb7daa63
				
			@@ -547,8 +547,7 @@ def do_gc_event_queues(
 | 
			
		||||
        filter_client_dict(realm_clients_all_streams, realm_id)
 | 
			
		||||
 | 
			
		||||
    for id in to_remove:
 | 
			
		||||
        if id in web_reload_clients:
 | 
			
		||||
            del web_reload_clients[id]
 | 
			
		||||
        web_reload_clients.pop(id, None)
 | 
			
		||||
        for cb in gc_hooks:
 | 
			
		||||
            cb(
 | 
			
		||||
                clients[id].user_profile_id,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user