From f74b9b72af10e06462e37c1293f643fb945d2a42 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Mon, 10 May 2021 00:54:13 -0400 Subject: [PATCH] Remove redundant function --- config.go | 4 ---- main.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.go b/config.go index 39c6bab..7e4426a 100644 --- a/config.go +++ b/config.go @@ -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) -} diff --git a/main.go b/main.go index a6ee2af..e787c2f 100644 --- a/main.go +++ b/main.go @@ -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) }