mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-15 23:31:05 +00:00
fix: resolve biome CI errors (noExplicitAny + formatting)
- Replace catch(error: any) with catch(error: unknown) in mcp client - Fix extra blank line left by refactor in renderer.ts
This commit is contained in:
parent
60a809d1e9
commit
06e51f2126
2 changed files with 6 additions and 3 deletions
|
|
@ -160,9 +160,13 @@ export class SupermemoryClient {
|
|||
message: `Successfully forgot memory (exact match) with ID: ${result.id}`,
|
||||
containerTag: this.containerTag,
|
||||
}
|
||||
} catch (error: any) {
|
||||
} catch (error: unknown) {
|
||||
// If not 404, it's a real error - re-throw it
|
||||
if (error?.status !== 404) {
|
||||
const status =
|
||||
error && typeof error === "object" && "status" in error
|
||||
? (error as Record<string, unknown>).status
|
||||
: undefined
|
||||
if (status !== 404) {
|
||||
throw error
|
||||
}
|
||||
// Otherwise continue to semantic search fallback
|
||||
|
|
|
|||
|
|
@ -686,7 +686,6 @@ function drawHexagon(
|
|||
ctx.closePath()
|
||||
}
|
||||
|
||||
|
||||
/** Lighten a 6-digit hex color by a fraction (0-1). Cached to avoid per-frame parsing. */
|
||||
export function lightenColor(hex: string, amount: number): string {
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue