Skip to content

Commit

Permalink
Merge pull request #535 from devix-tecnologia/patch-1
Browse files Browse the repository at this point in the history
fix: totalEntries is not defined
  • Loading branch information
cthackers authored Aug 30, 2024
2 parents ca54d1a + 7e31f27 commit 887f440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 887f440

Please sign in to comment.