From 412079c20a6989b9416f99cbd7cc4d521b35b2b0 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Tue, 2 Mar 2021 00:18:52 -0800 Subject: [PATCH] Remove index variable after loop completion --- ast.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ast.go b/ast.go index 85a6982..46d338f 100644 --- a/ast.go +++ b/ast.go @@ -115,6 +115,7 @@ func executeCmd(cmd *Command) error { } } } + delete(Vars, *RptLoop.IndexVar) } } return nil