Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

nit

Julius Marmingea6c57e169aa8
diff --git a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
index f5372a86b..d0231c20c 100644
--- a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
+++ b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
@@ -101,14 +101,12 @@ function parseBase64DataUrl(
dataUrl: string,
): { readonly mimeType: string; readonly base64: string } | null {
const match = /^data:([^;,]+);base64,([a-z0-9+/=\r\n]+)$/i.exec(dataUrl.trim());
- if (!match) {
- return null;
- }
+ if (!match) return null;
+
const mimeType = match[1]?.trim().toLowerCase();
const base64 = match[2]?.replace(/\s+/g, "");
- if (!mimeType || !base64) {
- return null;
- }
+ if (!mimeType || !base64) return null;
+
return { mimeType, base64 };
}