mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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
05e54a0af2
commit
ea60bc3ff8
@@ -79,7 +79,7 @@ def format_object(
|
|||||||
else:
|
else:
|
||||||
key = key_list[0]
|
key = key_list[0]
|
||||||
key_raw = key.lstrip("!").lstrip("#").lstrip('"')
|
key_raw = key.lstrip("!").lstrip("#").lstrip('"')
|
||||||
if key_raw != "html_url" and key_raw != "subject" and ":" not in key_raw:
|
if key_raw not in {"html_url", "subject"} and ":" not in key_raw:
|
||||||
value = get_value(obj, key_raw)
|
value = get_value(obj, key_raw)
|
||||||
if key.startswith("!"):
|
if key.startswith("!"):
|
||||||
message += f"\n>{value}"
|
message += f"\n>{value}"
|
||||||
|
|||||||
Reference in New Issue
Block a user