Skip to content

Commit 7c4626e

Browse files
committed
fix(check): use template.FuncMap in check
1 parent 85805ce commit 7c4626e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func CheckTemplates(wd string, log *log.Logger, config RoutesFileConfiguration)
116116
log.Println()
117117

118118
fns := templatetype.DefaultFunctions(routesPkg.Types)
119-
fns.Add(templatetype.Functions(fm))
119+
fns = fns.Add(templatetype.Functions(fm))
120120

121121
if err := templatetype.Check(t.template.Tree, dataVar, dataVarPkg, routesPkg.Fset, newForrest(ts), fns); err != nil {
122122
log.Println("ERROR", templatetype.Check(t.template.Tree, dataVar, dataVarPkg, routesPkg.Fset, newForrest(ts), fns))

0 commit comments

Comments
 (0)