Remove redundant function

This commit is contained in:
Adnan Maolood 2021-05-10 00:54:13 -04:00
parent 7b634acde8
commit f74b9b72af
2 changed files with 1 additions and 5 deletions

View file

@ -79,7 +79,3 @@ func LoadConfig(path string) (*Config, error) {
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)
}
}
if err := cfg.LoadTemplates("templates", templateExts); err != nil {
if err := cfg.templates.Load("templates", templateExts); err != nil {
log.Fatal(err)
}