Fix linting issues

This commit is contained in:
Reinier Criel 2025-12-08 15:36:37 -08:00
parent c51956b2db
commit b84b410fd8

View file

@ -43,9 +43,6 @@ function isParsable(pem) {
} }
} }
/** @type {string | null} */
let cachedPath = null;
/** /**
* Build a combined CA bundle. * Build a combined CA bundle.
* Automatically includes: * Automatically includes:
@ -104,7 +101,6 @@ export function getCombinedCaBundlePath() {
const combined = parts.filter(Boolean).join("\n"); const combined = parts.filter(Boolean).join("\n");
const target = path.join(os.tmpdir(), `safe-chain-ca-bundle-${Date.now()}.pem`); const target = path.join(os.tmpdir(), `safe-chain-ca-bundle-${Date.now()}.pem`);
fs.writeFileSync(target, combined, { encoding: "utf8" }); fs.writeFileSync(target, combined, { encoding: "utf8" });
cachedPath = target;
return target; return target;
} }