mirror of
https://github.com/strongdm/comply
synced 2024-11-21 15:14:54 +00:00
Merge pull request #122 from alrs/theme-err
internal/theme: fix shadowed error
This commit is contained in:
commit
e31fef1bb5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user