From 3c24d6b7002c4029948d744896911f2e1d5637d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 24 Jan 2026 12:31:03 +0800 Subject: [PATCH] Refactor markdownElement flash transfer check Simplifies the condition for detecting flash transfer info in markdownElement by removing redundant undefined check. --- packages/napcat-onebot/api/msg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/napcat-onebot/api/msg.ts b/packages/napcat-onebot/api/msg.ts index 62819560..4ef362c7 100644 --- a/packages/napcat-onebot/api/msg.ts +++ b/packages/napcat-onebot/api/msg.ts @@ -561,7 +561,7 @@ export class OneBotMsgApi { markdownElement: async (element) => { // 让QQ闪传消息独立出去 - if (element.mdExtInfo !== undefined && element?.mdExtInfo?.flashTransferInfo?.filesetId) { + if (element?.mdExtInfo?.flashTransferInfo?.filesetId) { return { type: OB11MessageDataType.flashtransfer, data: {