From 84b58ceb44fcfec5bc18024b48400ffa78ccbb13 Mon Sep 17 00:00:00 2001 From: Neer Friedman Date: Sun, 31 Oct 2021 14:56:10 +0200 Subject: [PATCH] fix file formatting with gofmt Signed-off-by: Neer Friedman --- pkg/engine/engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 86f8fb55a..9b210ed89 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -391,7 +391,7 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, vals chartutil. templates[path.Join(newParentID, t.Name)] = renderable{ tpl: string(t.Data), vals: next, - opts: readTemplateMagicComments(string(t.Data)), + opts: readTemplateMagicComments(string(t.Data)), basePath: path.Join(newParentID, "templates"), } } @@ -416,7 +416,7 @@ func readTemplateMagicComments(templateBody string) templateOpts { templateOpts := templateOpts{} matches := magicCommentsRegexp.FindAllSubmatch([]byte(templateBody), -1) for _, match := range matches { - if (strings.EqualFold(string(match[1]), "delim")) { + if strings.EqualFold(string(match[1]), "delim") { delim := strings.SplitN(string(match[2]), ",", 2) templateOpts.delimL = strings.Repeat(delim[0], 2) templateOpts.delimR = strings.Repeat(delim[1], 2) @@ -424,4 +424,4 @@ func readTemplateMagicComments(templateBody string) templateOpts { } return templateOpts - } +}