Compare commits

...

2 Commits

Author SHA1 Message Date
Rodolfo Campos e31fef1bb5
Merge pull request #122 from alrs/theme-err
internal/theme: fix shadowed error
2022-03-24 10:12:03 +01:00
Lars Lehtonen 5b2a8e93ee
internal/theme: fix shadowed error 2022-03-24 00:23:45 -07:00
1 changed files with 2 additions and 1 deletions

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 {