chore: run oxlint type-aware in lint

This commit is contained in:
Peter Steinberger
2025-12-31 19:59:31 +01:00
parent 94de794588
commit 2a2a3a7c59
7 changed files with 192 additions and 17 deletions
+1 -5
View File
@@ -136,11 +136,7 @@ async function readSnapshotFromDisk(cachePath: string): Promise<RuntimeQueryIdSn
try {
const raw = await readFile(cachePath, 'utf8');
return parseSnapshot(JSON.parse(raw));
} catch (error) {
const code = error && typeof error === 'object' ? String((error as { code?: unknown }).code ?? '') : '';
if (code !== 'ENOENT') {
return null;
}
} catch {
return null;
}
}