ruff: Fix SIM910 Use `.get(key)` instead of `.get(key, None)`.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-10-17 17:39:24 -07:00 committed by Tim Abbott
parent 1cc9947786
commit 10271fb850
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ class StripeTestCase(ZulipTestCase):
license_management="automatic", license_management="automatic",
) )
remote_server_plan_start_date = kwargs.get("remote_server_plan_start_date", None) remote_server_plan_start_date = kwargs.get("remote_server_plan_start_date")
if remote_server_plan_start_date: if remote_server_plan_start_date:
params.update( params.update(
remote_server_plan_start_date=remote_server_plan_start_date, remote_server_plan_start_date=remote_server_plan_start_date,

View File

@ -1894,7 +1894,7 @@ Output:
user_notifications_data=user_notifications_data, user_notifications_data=user_notifications_data,
message_id=message_id, message_id=message_id,
acting_user_id=acting_user_id, acting_user_id=acting_user_id,
mentioned_user_group_id=kwargs.get("mentioned_user_group_id", None), mentioned_user_group_id=kwargs.get("mentioned_user_group_id"),
idle=kwargs.get("idle", True), idle=kwargs.get("idle", True),
already_notified=kwargs.get( already_notified=kwargs.get(
"already_notified", {"email_notified": False, "push_notified": False} "already_notified", {"email_notified": False, "push_notified": False}