Remove unused inflate argument
The value true was an invalid flush argument so it was in practice unused.
This commit is contained in:
committed by
Lauri Kasanen
parent
286694869b
commit
0b19961b06
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user