chore: more lint cleanup.

This commit is contained in:
cpojer
2026-01-31 16:16:13 +09:00
parent b7e401b6b6
commit 009b16fab8
3 changed files with 15 additions and 18 deletions

View File

@@ -419,8 +419,10 @@ export async function autoMigrateLegacyStateDir(params: {
}
} catch (fallbackErr) {
try {
if (!legacyDir)
throw new Error("Legacy state dir not found", { cause: err }, { cause: fallbackErr });
if (!legacyDir) {
// oxlint-disable-next-line preserve-caught-error
throw new Error("Legacy state dir not found", { cause: fallbackErr });
}
fs.renameSync(targetDir, legacyDir);
warnings.push(
`State dir migration rolled back (failed to link legacy path): ${String(fallbackErr)}`,