Remove unused inflate argument

The value true was an invalid flush argument so it was in practice
unused.
This commit is contained in:
Niko Lehto
2020-02-03 09:53:30 +01:00
committed by Lauri Kasanen
parent 286694869b
commit 0b19961b06
2 changed files with 4 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ export default class TightDecoder {
return false;
}
data = this._zlibs[streamId].inflate(data, true, uncompressedSize);
data = this._zlibs[streamId].inflate(data, uncompressedSize);
if (data.length != uncompressedSize) {
throw new Error("Incomplete zlib block");
}
@@ -222,7 +222,7 @@ export default class TightDecoder {
return false;
}
data = this._zlibs[streamId].inflate(data, true, uncompressedSize);
data = this._zlibs[streamId].inflate(data, uncompressedSize);
if (data.length != uncompressedSize) {
throw new Error("Incomplete zlib block");
}