From cb7d7a043892e9911491c3acc32a36b61d891ea7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Nov 2019 11:00:21 -0500 Subject: Add some defaults for template options --- lib/templates/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/templates') diff --git a/lib/templates/template.go b/lib/templates/template.go index c09bf4d..e19b5ae 100644 --- a/lib/templates/template.go +++ b/lib/templates/template.go @@ -132,8 +132,8 @@ func ParseTemplateFromFile(templateName string, templateDirs []string, data inte if err != nil { return nil, err } - emailTemplate, err := - template.New(templateName).Funcs(templateFuncs).ParseFiles(templateFile) + emailTemplate, err := template.New(templateName). + Funcs(templateFuncs).ParseFiles(templateFile) if err != nil { return nil, err } -- cgit 1.4.1-2-gfad0