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

Merge pull request #122 from alrs/theme-err

internal/theme: fix shadowed error
This commit is contained in:
Rodolfo Campos 2022-03-24 10:12:03 +01:00 committed by GitHub
commit e31fef1bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {