From 488a179dda035069123d7afe242029f7d488ce02 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 4 Jan 2023 00:10:19 +0100 Subject: [PATCH] simplify range expression --- mailer/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailer/template.go b/mailer/template.go index 02f1f5c..8e7f16c 100644 --- a/mailer/template.go +++ b/mailer/template.go @@ -31,7 +31,7 @@ func readTemplatesConfig() { func loadTemplateFiles() { logrus.Debugln("STARTING IMPORTING TEMPLATE FILES") - for templateName, _ := range cache.Templates.Templates { + for templateName := range cache.Templates.Templates { data, err := os.ReadFile(config.Cfg.Templates.FolderPath + templateName + ".html") if err != nil {