🚧 Temporarily remove decompression for debugging

This commit is contained in:
C-3PO 2018-07-08 19:34:34 +02:00
parent 228f167711
commit 4e41a46006
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -21,13 +21,13 @@ export default function extractFileStream(file: ISsnFileEntry, inputStream: stre
curStream = curStream.pipe(decryptTransform);
}
//pipe into decompression
/*//pipe into decompression
const decompressTransform = zlib.createInflateRaw();
decompressTransform.on('error', (error) => {
//TODO: need to throw error sync, not async
throw new Error(`Error during decompression of "${file.name}": ${error.message}`);
});
curStream = curStream.pipe(decompressTransform);
curStream = curStream.pipe(decompressTransform);*/
return curStream;
}