Skip to content

Commit 887f440

Browse files
authored
Merge pull request #535 from devix-tecnologia/patch-1
fix: totalEntries is not defined
2 parents ca54d1a + 7e31f27 commit 887f440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zipFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ module.exports = function (/*Buffer|null*/ inBuffer, /** object */ options) {
294294

295295
mainHeader.size = 0;
296296
mainHeader.offset = 0;
297-
totalEntries = 0;
297+
let totalEntries = 0;
298298

299299
for (const entry of this.entries) {
300300
// compress data and set local and entry header accordingly. Reason why is called first

0 commit comments

Comments
 (0)