simplify: funcMap member func
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-04-19 03:57:07 +02:00
parent c6896bdee2
commit 62e038fa3e
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -46,10 +46,7 @@ func setFuncMap(t *template.Template) {
return template.HTML(html) return template.HTML(html)
}, },
"pageIs": func(want, got string) bool { "pageIs": func(want, got string) bool {
if want == got { return want == got
return true
}
return false
}, },
}) })
} }
@ -63,10 +60,7 @@ func getFuncMap() []template.FuncMap {
return template.HTML(html) return template.HTML(html)
}, },
"pageIs": func(want, got string) bool { "pageIs": func(want, got string) bool {
if want == got { return want == got
return true
}
return false
}, },
}, },
} }