Get rid of extra var

This commit is contained in:
Joey Yakimowich-Payne 2020-05-13 18:31:07 -06:00
commit ec5ba997b7

View file

@ -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