style: apply repo formatter to the security-fix files (no behavior change)

This commit is contained in:
Affaan Mustafa
2026-06-18 20:03:24 -04:00
parent bd9083ca1e
commit ed251f958a
3 changed files with 209 additions and 295 deletions
+2 -4
View File
@@ -70,9 +70,7 @@ function assertWithinTrustedRoot(target, root, action = 'write') {
throw new Error(`Refusing to ${action} '${target}': no trusted install root resolved.`);
}
if (!isWithinRoot(target, root)) {
throw new Error(
`Refusing to ${action} outside the install root: '${target}' is not within '${root}'.`
);
throw new Error(`Refusing to ${action} outside the install root: '${target}' is not within '${root}'.`);
}
return realpathNearestExisting(target);
}
@@ -80,5 +78,5 @@ function assertWithinTrustedRoot(target, root, action = 'write') {
module.exports = {
realpathNearestExisting,
isWithinRoot,
assertWithinTrustedRoot,
assertWithinTrustedRoot
};