mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
ruff: Fix PLR1714 Consider merging multiple comparisons.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3b09197fdf
commit
2ae285af7c
@@ -43,7 +43,7 @@ def api_wordpress_webhook(
|
||||
# remove trailing whitespace (issue for some test fixtures)
|
||||
hook = hook.rstrip()
|
||||
|
||||
if hook == "publish_post" or hook == "publish_page":
|
||||
if hook in ("publish_post", "publish_page"):
|
||||
data = PUBLISH_POST_OR_PAGE_TEMPLATE.format(type=post_type, title=post_title, url=post_url)
|
||||
|
||||
elif hook == "user_register":
|
||||
|
||||
Reference in New Issue
Block a user