aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2020-05-13 18:31:07 -0600
committergenotrance <dev@genotrance.com>2020-05-15 11:20:00 -0500
commit1a7860d8f4ac5d2d2d453e75e05200cb34849954 (patch)
treee3fda4b0b082856ce183ce7c4fd943867f4a12c9
parent9895303578c5313a775b9226d051dfe63905495a (diff)
downloadnimterop-1a7860d8f4ac5d2d2d453e75e05200cb34849954.tar.gz
nimterop-1a7860d8f4ac5d2d2d453e75e05200cb34849954.zip
Get rid of extra var
-rw-r--r--nimterop/ast2.nim3
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