Skip to content

Commit

Permalink
use original subTable
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctzombie committed Jul 2, 2024
1 parent 176b2e2 commit 46d06a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/reflection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,7 @@ export class Parser {
throw new Error(`Malformed message missing table at ${field.name()} positon ${idx}`);
}

const typeTable = deserializer[0](subTable);
if (!typeTable) {
throw new Error(`Malformed message bad table at ${field.name()} positon ${idx}`);
}
result.push(deserializer[1](typeTable));
result.push(deserializer[1](subTable));
}

return result;
Expand Down

0 comments on commit 46d06a3

Please sign in to comment.