evijit HF Staff Claude Sonnet 4.6 commited on
Commit
b5fa10d
·
1 Parent(s): 8529a4b

Remove raw-hierarchy fallback — only ever serve cleaned hierarchy

Browse files
Files changed (1) hide show
  1. lib/sidecars.ts +1 -9
lib/sidecars.ts CHANGED
@@ -188,15 +188,7 @@ async function fetchCleanedHierarchy(): Promise<EvalHierarchy> {
188
  return null
189
  }),
190
  ])
191
- let cleaned: EvalHierarchy
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
  }