mirror of
https://github.com/strongdm/comply
synced 2024-11-23 08:04:54 +00:00
internal/theme: fix shadowed error
This commit is contained in:
parent
298220fe8e
commit
5b2a8e93ee
@ -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