From b40a45a11b98c2a2dac24f9b6151722f1e3115be Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 29 Aug 2023 17:30:00 +0200 Subject: [PATCH] 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. --- core/inflator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/inflator.js b/core/inflator.js index 4b337607..f851f2a7 100644 --- a/core/inflator.js +++ b/core/inflator.js @@ -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) {