Format the retired-file check

This commit is contained in:
Chris Tate
2026-10-20 18:04:24 -05:00
parent a1ef7950d0
commit b8fc0444ac
+2 -1
View File
@@ -1014,7 +1014,8 @@ function publicSnapshot(snapshot) {
function checkLocal() {
for (const path of retiredOutputPaths) {
if (existsSync(path)) throw new Error(`${path.slice(root.length)} is no longer generated; delete it`);
if (existsSync(path))
throw new Error(`${path.slice(root.length)} is no longer generated; delete it`);
}
const snapshot = JSON.parse(readFileSync(internalOutputPath, "utf8"));
if (snapshot.nodeVersion !== pin.version || snapshot.nodeCommit !== pin.commit) {