From ef52c60c7826919dd00072b54e7802c1e69eab63 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 7 Jun 2018 01:04:44 +0200 Subject: [PATCH] Removed creation of output directory in the main path --- index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.js b/index.js index 520f345..7f8efa9 100644 --- a/index.js +++ b/index.js @@ -355,12 +355,8 @@ function RequestHandler(request, response) { } archive.append(Buffer.from(JSON.stringify(manifest), "utf8"), { name: "manifest.json" }); - - let signatureBuffer = createSignature(manifest); - if (!fs.existsSync("output")) { - fs.mkdirSync("output"); - } + let signatureBuffer = createSignature(manifest); archive.append(signatureBuffer, { name: "signature" });