fix(federation): fix TypeScript strict mode error in parseFederationHeaders

This commit is contained in:
Jannis Braun
2026-03-25 21:51:35 +01:00
parent 46e6f8a7e2
commit c5188c1702
+1 -1
View File
@@ -96,7 +96,7 @@ export function parseFederationHeaders(
const value = headers[name]; const value = headers[name];
if (value === undefined || value === null) return null; if (value === undefined || value === null) return null;
if (Array.isArray(value)) { if (Array.isArray(value)) {
return value.length > 0 ? value[0] : null; return value.length > 0 ? (value[0] ?? null) : null;
} }
return value; return value;
}; };