fix: split single-line try/catch to satisfy max-statements-per-line lint rule

Co-Authored-By: mantra <mantra@stack-auth.com>
This commit is contained in:
Devin AI 2026-06-05 00:22:07 +00:00
parent 227ec0ec20
commit 53fb16db11

View File

@ -101,7 +101,9 @@ function writeFileAtomic(configFilePath: string, content: string): void {
try {
renameSync(tempPath, configFilePath);
} catch (error) {
try { rmSync(tempPath); } catch { /* best-effort cleanup */ }
try {
rmSync(tempPath);
} catch { /* best-effort cleanup */ }
throw error;
}
}