mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
ruff: Fix PLR1714 Consider merging multiple comparisons.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 2ae285af7c)
This commit is contained in:
committed by
Alex Vandiver
parent
b9aa772885
commit
91e5ef39eb
@@ -75,7 +75,7 @@ def get_opened_or_update_pull_request_body(helper: Helper) -> str:
|
||||
description = pull_request["body"].tame(check_none_or(check_string))
|
||||
target_branch = None
|
||||
base_branch = None
|
||||
if action == "opened" or action == "merged":
|
||||
if action in ("opened", "merged"):
|
||||
target_branch = pull_request["head"]["label"].tame(check_string)
|
||||
base_branch = pull_request["base"]["label"].tame(check_string)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user