🐛 Remove streamSetMaxLength since that is handled by getFileFromDisks

This commit is contained in:
C-3PO 2018-07-08 19:48:48 +02:00
parent 79412cefa0
commit 04ca2c69a8
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

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