Unused error variables in catch block are not allowed (#24487)

This commit is contained in:
Alisa
2026-04-01 21:33:07 -07:00
committed by GitHub
parent 84936dc85d
commit 3344f6849c
92 changed files with 162 additions and 157 deletions
@@ -138,7 +138,7 @@ class ExtensionIntegrityStore {
let rawStore: IntegrityStore;
try {
rawStore = IntegrityStoreSchema.parse(JSON.parse(content));
} catch (_) {
} catch {
throw new Error(
`Failed to parse extension integrity store. ${resetInstruction}}`,
);
+2 -2
View File
@@ -258,7 +258,7 @@ export class ProjectRegistry {
diskCollision = true;
break;
}
} catch (_e) {
} catch {
// If we can't read it, assume it's someone else's to be safe
diskCollision = true;
break;
@@ -274,7 +274,7 @@ export class ProjectRegistry {
try {
await this.ensureOwnershipMarkers(candidate, projectPath);
return candidate;
} catch (_e) {
} catch {
// Someone might have claimed it between our check and our write.
// Try next candidate.
continue;