From 2acf57d23dcdda0eb02c190ccc357a0d2328977f Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 13 Jun 2020 16:32:03 +0200 Subject: [PATCH] Fix erroneous delete of local variable The delete operator only works on object properties, and causes the code coverage to fail for the file in question if used on a local variable. --- master.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master.js b/master.js index 05a7340a..18de1aa0 100644 --- a/master.js +++ b/master.js @@ -187,7 +187,7 @@ async function uploadExport(req, res, next) { } data = Buffer.concat(data); let zip = await JSZip.loadAsync(data); - delete data; + data = null; // This is hardcoded to prevent path expansion attacks let exportFiles = [