From 31487995bb1daa1a46c70136704b1093318cb236 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 23 Mar 2026 16:13:30 +0800 Subject: [PATCH] chore: ruff format --- astrbot/core/platform/sources/lark/lark_event.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/astrbot/core/platform/sources/lark/lark_event.py b/astrbot/core/platform/sources/lark/lark_event.py index 821bcc6af..1c7dd0b43 100644 --- a/astrbot/core/platform/sources/lark/lark_event.py +++ b/astrbot/core/platform/sources/lark/lark_event.py @@ -349,12 +349,16 @@ class LarkMessageEvent(AstrMessageEvent): else: return None - return { - "schema": "2.0", - "body": { - "elements": elements, - }, - } if elements else None + return ( + { + "schema": "2.0", + "body": { + "elements": elements, + }, + } + if elements + else None + ) @staticmethod async def _send_interactive_card(