mirror of
https://github.com/strongdm/comply
synced 2024-11-24 16:44:53 +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))
|
rootMdFile := string(MustAsset(name))
|
||||||
|
|
||||||
var w bytes.Buffer
|
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 {
|
if err != nil {
|
||||||
w.WriteString(fmt.Sprintf("# Error processing template:\n\n%s\n", err.Error()))
|
w.WriteString(fmt.Sprintf("# Error processing template:\n\n%s\n", err.Error()))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user