mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-27 20:14:20 +00:00
Remove redundant function
This commit is contained in:
parent
e976aa1be7
commit
f7bfe681d9
|
@ -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)
|
|
||||||
}
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue