refactor(quick-260921-iwr): zwei ueberfluessige Ausrufezeichen in imap.provider.ts entfernt
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPPB4ApQxzSU1rwV2Ffj9J
This commit is contained in:
@@ -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 ?? '',
|
||||
|
||||
Reference in New Issue
Block a user