1
0
mirror of https://github.com/strongdm/comply synced 2024-11-05 15:35:25 +00:00

internal/theme: fix shadowed error

This commit is contained in:
Lars Lehtonen 2022-03-24 00:23:45 -07:00
parent 298220fe8e
commit 5b2a8e93ee
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -29,7 +29,8 @@ func SaveTo(themeName string, replace map[string]string, saveDir string) error {
rootMdFile := string(MustAsset(name))
var w bytes.Buffer
rootMdFileTemplate, err := template.New("rootMdFile").Parse(rootMdFile)
var rootMdFileTemplate *template.Template
rootMdFileTemplate, err = template.New("rootMdFile").Parse(rootMdFile)
if err != nil {
w.WriteString(fmt.Sprintf("# Error processing template:\n\n%s\n", err.Error()))
} else {