Skip to content
Myr

cmd: Make tmpl local variable

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix CircleCI tests

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent c0bd07d · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:cobra/cmd/helpers.go+1 added-4 removed
81 unmodified lines
82 }83 return false84}8586var tmpl = template.New("").Funcs(template.FuncMap{"comment": commentifyString})8786func executeTemplate(tmplStr string, data interface{}) (string, error) {89 var err error90 tmpl, err = tmpl.Parse(tmplStr)87 tmpl, err := template.New("").Funcs(template.FuncMap{"comment": commentifyString}).Parse(tmplStr)88 if err != nil {89 return "", err90 }91
52 unmodified lines