Address some linting issues (#390)

This commit is contained in:
Dustin Decker
2022-04-12 22:11:34 -07:00
committed by GitHub
parent ad82a8e52c
commit dd86389487
11 changed files with 33 additions and 226 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
@@ -95,11 +96,14 @@ func mustWriteTemplates(jobs []templateJob) {
if err != nil {
log.Fatal(err)
}
tmpl.Execute(f, templateData{
err = tmpl.Execute(f, templateData{
NameTitle: nameTitle,
NameLower: nameLower,
NameUpper: nameUpper,
})
if err != nil {
log.Fatal(fmt.Errorf("failed to execute template: %w", err))
}
}
}