Problem: templateFile is unused
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

Solution: remove templateFile
This commit is contained in:
Peter Stuifzand 2021-11-20 21:39:38 +01:00
parent 7f16439dd7
commit 7c4711da1b
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -106,10 +106,6 @@ func newMainHandler(backend *memoryBackend, baseURL, templateDir string, pool *r
return h, nil return h, nil
} }
func (h *mainHandler) templateFile(filename string) string {
return fmt.Sprintf("%s/%s", h.TemplateDir, filename)
}
func (h *mainHandler) renderTemplate(w io.Writer, filename string, data interface{}) error { func (h *mainHandler) renderTemplate(w io.Writer, filename string, data interface{}) error {
fsys, err := fs.Sub(templates, "templates") fsys, err := fs.Sub(templates, "templates")
if err != nil { if err != nil {