Trim redundant source comments

This commit is contained in:
Turtle
2026-07-25 13:02:37 +08:00
parent f7b36bd36d
commit fac6c35e9a
83 changed files with 219 additions and 748 deletions

View File

@@ -472,8 +472,8 @@ export async function writeFileAtomic(
try {
await replaceFile(absolutePath, tempPath)
} catch (error: unknown) {
// Preserve the old behavior when an external actor removes the observed target during
// staging: the temp already carries that target's protected DACL, so rename recreates it.
// If the observed target disappears during staging, the protected DACL
// already copied to the temp remains authoritative for recreation.
if (!isENOENT(error)) throw error
await rename(tempPath, absolutePath)
}