🐛 Fix SSN file reader to allow for non-solidpkg files
This commit is contained in:
parent
f2d6f70790
commit
1172d34a2b
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue