Skip to content

Commit

Permalink
🐛 Fix error if values is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 6, 2022
1 parent f8b374e commit e8d14bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/template/line_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e8d14bb

Please sign in to comment.