diff --git a/packages/actions/src/helpers/utils.ts b/packages/actions/src/helpers/utils.ts index 03e7b2e3..fcde7ac6 100644 --- a/packages/actions/src/helpers/utils.ts +++ b/packages/actions/src/helpers/utils.ts @@ -712,8 +712,10 @@ export const parseCeremonyFile = async (path: string, cleanup: boolean = false): circuits.push(circuit) // remove the local r1cs and wasm downloads (if used for verifying the config only vs setup) - if (cleanup) fs.unlinkSync(localR1csPath) - fs.unlinkSync(localWasmPath) + if (cleanup) { + fs.unlinkSync(localR1csPath) + fs.unlinkSync(localWasmPath) + } } const setupData: SetupCeremonyData = {