Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 21, 2024
1 parent 12b85ba commit 481e7cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/NodeParser/MappedTypeNodeParser.ts
Expand Up @@ -95,11 +95,7 @@ export class MappedTypeNodeParser implements SubNodeParser {
if (!node.nameType) {
return rawKey;
}
const key = derefType(
this.childNodeParser.createType(node.nameType, this.createSubContext(node, rawKey, context)),
);

return key;
return derefType(this.childNodeParser.createType(node.nameType, this.createSubContext(node, rawKey, context)));
}

protected getProperties(node: ts.MappedTypeNode, keyListType: UnionType, context: Context): ObjectProperty[] {
Expand Down

0 comments on commit 481e7cf

Please sign in to comment.