1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-09-19 01:31:36 +02:00

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
}
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)
}