Skip to content

Commit

Permalink
🐛 Unset .Value after processing template
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jun 10, 2022
1 parent 204819b commit 5107f71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/node/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func templateComment(conf config.Config, comment string, n ast.Node) (ast.Node,
n, ok := n.(ast.ScalarNode)
if ok {
conf.Values["Value"] = n.GetValue()
defer func() {
delete(conf.Values, "Value")
}()
}
}

Expand Down

0 comments on commit 5107f71

Please sign in to comment.