🐛 Remove streamSetMaxLength since that is handled by getFileFromDisks
This commit is contained in:
parent
79412cefa0
commit
04ca2c69a8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import streamSetMaxLength from './streams/streamSetMaxLength';
|
||||||
export default function extractFileStream(file: ISsnFileEntry, inputStream: stream.Readable, skipDecompression: boolean = false): stream.Readable {
|
export default function extractFileStream(file: ISsnFileEntry, inputStream: stream.Readable, skipDecompression: boolean = false): stream.Readable {
|
||||||
let curStream = inputStream;
|
let curStream = inputStream;
|
||||||
|
|
||||||
curStream = streamSetMaxLength(curStream, file.compressedSize);
|
//curStream = streamSetMaxLength(curStream, file.compressedSize);
|
||||||
|
|
||||||
//pipe into decryption if file is encrypted
|
//pipe into decryption if file is encrypted
|
||||||
if (file.decryptionKeys !== undefined) {
|
if (file.decryptionKeys !== undefined) {
|
||||||
|
|
Loading…
Reference in a new issue