diff --git a/pkg/template/line_comment.go b/pkg/template/line_comment.go index d6c8bef..11ca934 100644 --- a/pkg/template/line_comment.go +++ b/pkg/template/line_comment.go @@ -41,7 +41,9 @@ func TemplateLineComment(conf config.Config, node *yaml.Node) error { return err } - conf.Values["Value"] = node.Value + if conf.Values != nil { + conf.Values["Value"] = node.Value + } var buf strings.Builder if err = tmpl.Execute(&buf, conf.Values); err != nil {