From 4539e152ed581ecee7233cbd82fdbe898766016c Mon Sep 17 00:00:00 2001 From: Malcolm Holmes Date: Mon, 17 Jun 2024 13:42:33 +0100 Subject: [PATCH] Lint --- pkg/grizzly/tmpl.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/grizzly/tmpl.go b/pkg/grizzly/tmpl.go index 456e684e..b29ac838 100644 --- a/pkg/grizzly/tmpl.go +++ b/pkg/grizzly/tmpl.go @@ -46,9 +46,7 @@ func findAndParseTemplates(vfs fs.FS, rootTmpl *template.Template, rootDir strin templateName := strings.TrimPrefix(strings.TrimPrefix(path, rootDir), "/") t := rootTmpl.New(templateName).Funcs( template.FuncMap{ - "IsWarning": func(i any) bool { - return IsWarning(i) - }, + "IsWarning": IsWarning, }, ) _, err = t.Parse(string(contents))