chore: reformat with ruff

This commit is contained in:
Dale Null
2026-05-15 16:41:51 +08:00
parent c665b6e3e5
commit 98acd9f0da

View File

@@ -775,9 +775,9 @@ class DingtalkPlatformAdapter(Platform):
task = loop.create_task(self.client_.start())
# 当 task 完成时唤醒线程(无论是正常退出还是异常退出)
task.add_done_callback(
lambda _: self._shutdown_event.set()
if self._shutdown_event
else None
lambda _: (
self._shutdown_event.set() if self._shutdown_event else None
)
)
self._shutdown_event.wait()
if task.done():