Problem: templateFile is unused
Solution: remove templateFile
This commit is contained in:
parent
7f16439dd7
commit
7c4711da1b
|
@ -106,10 +106,6 @@ func newMainHandler(backend *memoryBackend, baseURL, templateDir string, pool *r
|
|||
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 {
|
||||
fsys, err := fs.Sub(templates, "templates")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user