1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-29 06:36:06 +02:00

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