simplify: funcMap member func
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c6896bdee2
commit
62e038fa3e
@ -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
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user