Spaces:
Running
Running
Remove raw-hierarchy fallback — only ever serve cleaned hierarchy
Browse files- lib/sidecars.ts +1 -9
lib/sidecars.ts
CHANGED
|
@@ -188,15 +188,7 @@ async function fetchCleanedHierarchy(): Promise<EvalHierarchy> {
|
|
| 188 |
return null
|
| 189 |
}),
|
| 190 |
])
|
| 191 |
-
|
| 192 |
-
try {
|
| 193 |
-
cleaned = cleanHierarchy(raw, comparisonIndex)
|
| 194 |
-
} catch (err) {
|
| 195 |
-
console.error(
|
| 196 |
-
`[sidecars] cleanHierarchy threw — falling back to raw hierarchy. ${err instanceof Error ? err.stack ?? err.message : String(err)}`,
|
| 197 |
-
)
|
| 198 |
-
return raw
|
| 199 |
-
}
|
| 200 |
void writeToDisk(cleanCachePath, JSON.stringify(cleaned))
|
| 201 |
return cleaned
|
| 202 |
}
|
|
|
|
| 188 |
return null
|
| 189 |
}),
|
| 190 |
])
|
| 191 |
+
const cleaned = cleanHierarchy(raw, comparisonIndex)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
void writeToDisk(cleanCachePath, JSON.stringify(cleaned))
|
| 193 |
return cleaned
|
| 194 |
}
|