diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 2adf192..c15f804 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -21,7 +21,7 @@ export default function extractFileStream(file: ISsnFileEntry, inputStream: stre curStream = curStream.pipe(decryptTransform); } - if (skipDecompression) { + if (!skipDecompression) { //pipe into decompression const decompressTransform = zlib.createInflateRaw(); decompressTransform.on('error', (error) => {