mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
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:
parent
227ec0ec20
commit
53fb16db11
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user