Remove unused argument to inflateInit()

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.
This commit is contained in:
Pierre Ossman 2023-08-29 17:30:00 +02:00
parent 01bb36d431
commit b40a45a11b
1 changed files with 1 additions and 2 deletions

View File

@ -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) {