ruff: Fix RUF051 Use pop instead of key in dictdel dict[key].

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-03-14 15:31:58 -07:00
committed by Tim Abbott
parent 6e36c6de16
commit 67fb7daa63
5 changed files with 5 additions and 10 deletions

View File

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