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))