Skip to content

Commit

Permalink
Remove unused argument to inflateInit()
Browse files Browse the repository at this point in the history
There is just one argument to inflateInit(). It is inflateInit2() that
takes two arguments.

Since this argument was never used, let's just remove it and keep the
existing behaviour.
  • Loading branch information
CendioOssman committed Aug 29, 2023
1 parent 01bb36d commit b40a45a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/inflator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ export default class Inflate {
this.strm = new ZStream();
this.chunkSize = 1024 * 10 * 10;
this.strm.output = new Uint8Array(this.chunkSize);
this.windowBits = 5;

inflateInit(this.strm, this.windowBits);
inflateInit(this.strm);
}

setInput(data) {
Expand Down

0 comments on commit b40a45a

Please sign in to comment.