From 0b7f6fa9d0049fabe7053a2f6479d156dc8f99ff Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 6 Apr 2026 22:51:53 +0100 Subject: [PATCH] refactor: dedupe msteams handler record helper --- extensions/msteams/src/monitor-handler/message-handler.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/msteams/src/monitor-handler/message-handler.ts b/extensions/msteams/src/monitor-handler/message-handler.ts index 0844370597b..39e2d1c44a0 100644 --- a/extensions/msteams/src/monitor-handler/message-handler.ts +++ b/extensions/msteams/src/monitor-handler/message-handler.ts @@ -18,6 +18,7 @@ import { import { buildMSTeamsAttachmentPlaceholder, buildMSTeamsMediaPayload, + isRecord, type MSTeamsAttachmentLike, summarizeMSTeamsHtmlAttachments, } from "../attachments.js"; @@ -39,9 +40,6 @@ import { wasMSTeamsBotMentioned, } from "../inbound.js"; -function isRecord(value: unknown): value is Record { - return typeof value === "object" && value !== null; -} function extractTextFromHtmlAttachments(attachments: MSTeamsAttachmentLike[]): string { for (const attachment of attachments) { if (attachment.contentType !== "text/html") {