Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(codeql): remove redundant error detail initialization
Alfredo Lopez730ec8ff51ec
diff --git a/profile-ui/lib/api.ts b/profile-ui/lib/api.tsindex 3649537b6..a2ceb839e 100644--- a/profile-ui/lib/api.ts+++ b/profile-ui/lib/api.ts@@ -124,7 +124,7 @@ export async function apiSend(if (!res.ok) {const text = await res.text()if (res.status === 401) handleUnauthorized()- let detail = text+ let detail: stringtry {const parsed = JSON.parse(text) as { error?: unknown; message?: unknown }detail = String(parsed.message || parsed.error || text)@@ -165,7 +165,7 @@ export async function loginWithPassword(})if (!res.ok) {const text = await res.text()- let detail = text+ let detail: stringtry {const parsed = JSON.parse(text) as { error?: unknown; message?: unknown }detail = String(parsed.message || parsed.error || text)diff --git a/profile-ui/package-lock.json b/profile-ui/package-lock.jsonindex ee80888fa..ee191a51d 100644--- a/profile-ui/package-lock.json+++ b/profile-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-profile-ui",- "version": "0.1.121",+ "version": "0.1.122","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-profile-ui",- "version": "0.1.121",+ "version": "0.1.122","dependencies": {"@clerum/desktop-app-links": "file:../packages/desktop-app-links","next": "16.2.11",diff --git a/profile-ui/package.json b/profile-ui/package.jsonindex d13d230b7..3a220df6b 100644--- a/profile-ui/package.json+++ b/profile-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-profile-ui",- "version": "0.1.121",+ "version": "0.1.122","private": true,"scripts": {"dev": "next dev",