Skip to content

Commit

Permalink
fix: totalEntries is not defined
Browse files Browse the repository at this point in the history
Update zipFile.js, declaring totalEntries variable using 'let' keyword.

resolv: #534
  • Loading branch information
sidartaveloso authored Aug 16, 2024
1 parent b148463 commit 7e31f27
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 7e31f27

Please sign in to comment.