From 27909e4502cf3f5b29c60d01211d2724b15c2617 Mon Sep 17 00:00:00 2001 From: Schalli Date: Mon, 21 Sep 2026 14:03:01 +0200 Subject: [PATCH] refactor(quick-260921-iwr): zwei ueberfluessige Ausrufezeichen in imap.provider.ts entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit imapflow typisiert uid in FetchMessageObject als Pflichtfeld (lib/imap-flow.d.ts Zeile 469, Kommentar "Always included in the response"). Die beiden Zusicherungen msg.uid! sicherten also einen Wert ab, der ohnehin nicht fehlen kann. Reine Lesbarkeitsaenderung ohne Verhaltensaenderung, tsc bleibt gruen. Die drei verbliebenen Zusicherungen (tenders.controller.ts:244, favorites-widget.tsx:149, sidebar.tsx:80) bleiben unveraendert — jede durch eine konkrete vorgelagerte Zeile garantiert (Provider-Eintrag, gemeinsame Herleitung aus favorites, Anlegen des Map-Eintrags direkt davor). NONNULL 8 -> 6, keines davon mehr in imap.provider.ts. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01TPPB4ApQxzSU1rwV2Ffj9J --- apps/api/src/inbox/imap.provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/inbox/imap.provider.ts b/apps/api/src/inbox/imap.provider.ts index 14d7fed..b55e7f6 100644 --- a/apps/api/src/inbox/imap.provider.ts +++ b/apps/api/src/inbox/imap.provider.ts @@ -211,7 +211,7 @@ export class ImapProvider implements InboxProvider { if (attachments.length > 0) { results.push({ - uid: msg.uid!, + uid: msg.uid, messageId: msg.envelope?.messageId ?? '', subject: msg.envelope?.subject ?? '', from: msg.envelope?.from?.[0]?.address ?? '', @@ -307,7 +307,7 @@ export class ImapProvider implements InboxProvider { } results.push({ - uid: msg.uid!, + uid: msg.uid, messageId: msg.envelope?.messageId ?? '', subject: msg.envelope?.subject ?? '', from: msg.envelope?.from?.[0]?.address ?? '',