diff options
| author | Joey Yakimowich-Payne <jyapayne@gmail.com> | 2020-05-13 18:31:07 -0600 |
|---|---|---|
| committer | genotrance <dev@genotrance.com> | 2020-05-15 11:20:00 -0500 |
| commit | 1a7860d8f4ac5d2d2d453e75e05200cb34849954 (patch) | |
| tree | e3fda4b0b082856ce183ce7c4fd943867f4a12c9 | |
| parent | 9895303578c5313a775b9226d051dfe63905495a (diff) | |
| download | nimterop-1a7860d8f4ac5d2d2d453e75e05200cb34849954.tar.gz nimterop-1a7860d8f4ac5d2d2d453e75e05200cb34849954.zip | |
Get rid of extra var
| -rw-r--r-- | nimterop/ast2.nim | 3 |
1 files changed, 1 insertions, 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 |
