From ec5ba997b75f2dba4d9dc8dc61bb4072f8286bed Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Wed, 13 May 2020 18:31:07 -0600 Subject: [PATCH] Get rid of extra var --- nimterop/ast2.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nimterop/ast2.nim b/nimterop/ast2.nim index 3b708b5..0d0883c 100644 --- a/nimterop/ast2.nim +++ b/nimterop/ast2.nim @@ -573,8 +573,7 @@ iterator newIdentDefs(gState: State, name: string, node: TSNode, offset: SomeInt (pname, _, pinfo) = gState.getNameInfo(node[i].getAtom(), nskField, parent = name) pident = gState.getIdent(pname, pinfo, exported) result.add pident - let tyArray = gState.getTypeArray(node[i], tident, name) - result.add tyArray + result.add gState.getTypeArray(node[i], tident, name) result.add newNode(nkEmpty) else: result = nil