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.
This commit is contained in:
Hornwitser committed 2020-06-15 00:13:25 +02:00
1 parent 07cff0ab9a
commit 2acf57d23d
1 file changed
+1 -1
+1 -1
View File
@@ -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 = [