From 1172d34a2bc5d17c711cdec53c3d4738197b9bcb Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 22 Jun 2018 13:36:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20SSN=20file=20reader=20to?= =?UTF-8?q?=20allow=20for=20non-solidpkg=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/readSsnFile.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ssn/readSsnFile.ts b/src/ssn/readSsnFile.ts index c5a4b88..6c838a0 100644 --- a/src/ssn/readSsnFile.ts +++ b/src/ssn/readSsnFile.ts @@ -104,9 +104,6 @@ export default function readSsnFile(buffer: Buffer): ISsnFileEntry[] { const relOffset = dv.getUint32(pos, true); pos += 4; /** file name (variable size) */ const fileName = Decoder.decode(new DataView(arrayBuffer, pos, fileNameLength)); pos += fileNameLength; - if (fileName !== 'metafile.solid') { - throw new Error(`Expected file name to be "metafile.solid" but it was "${fileName}".`); - } //read password from extra field const extraFieldEnd = pos + extraFieldLength;