diff --git a/zipFile.js b/zipFile.js index 234f6cd..a52db94 100644 --- a/zipFile.js +++ b/zipFile.js @@ -294,7 +294,7 @@ module.exports = function (/*Buffer|null*/ inBuffer, /** object */ options) { mainHeader.size = 0; mainHeader.offset = 0; - totalEntries = 0; + let totalEntries = 0; for (const entry of this.entries) { // compress data and set local and entry header accordingly. Reason why is called first