Remove redundant function

This commit is contained in:
adnano 2021-05-10 00:54:13 -04:00
parent e976aa1be7
commit f7bfe681d9
2 changed files with 1 additions and 5 deletions

View file

@ -79,7 +79,3 @@ func LoadConfig(path string) (*Config, error) {
return c, nil return c, nil
} }
func (c *Config) LoadTemplates(path string, exts []string) error {
return c.templates.Load(path, exts)
}

View file

@ -63,7 +63,7 @@ func build() {
templateExts = append(templateExts, task.TemplateExt) templateExts = append(templateExts, task.TemplateExt)
} }
} }
if err := cfg.LoadTemplates("templates", templateExts); err != nil { if err := cfg.templates.Load("templates", templateExts); err != nil {
log.Fatal(err) log.Fatal(err)
} }