Skip to content

Commit 93f01d9

Browse files
committed
fix: ruff format - break long or expressions
1 parent 5f837ce commit 93f01d9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • astrbot/core/pipeline/result_decorate

astrbot/core/pipeline/result_decorate/stage.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,15 @@ async def process(
406406
is_private = event.get_message_type() == MessageType.FRIEND_MESSAGE
407407
should_quote = (
408408
self.reply_with_quote_scope == "all"
409-
or (self.reply_with_quote_scope == "private_only" and is_private)
410-
or (self.reply_with_quote_scope == "group_only" and not is_private)
409+
or (
410+
self.reply_with_quote_scope == "private_only" and is_private
411+
)
412+
or (
413+
self.reply_with_quote_scope == "group_only"
414+
and not is_private
415+
)
411416
)
412417
if should_quote and not any(
413418
isinstance(item, File) for item in result.chain
414419
):
415420
result.chain.insert(0, Reply(id=event.message_obj.message_id))
416-

0 commit comments

Comments
 (0)