ruff: Fix PLR1714 Consider merging multiple comparisons.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-07-21 16:15:10 -07:00
committed by Tim Abbott
parent 3b09197fdf
commit 2ae285af7c
19 changed files with 42 additions and 57 deletions

View File

@@ -77,7 +77,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)