mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
tpl/tplimpl: Fix mutex unlock
This commit is contained in:
@@ -107,7 +107,7 @@ type templateHandler struct {
|
|||||||
// template funcs etc. built-in.
|
// template funcs etc. built-in.
|
||||||
func (t *templateHandler) NewTextTemplate() tpl.TemplateParseFinder {
|
func (t *templateHandler) NewTextTemplate() tpl.TemplateParseFinder {
|
||||||
t.mu.Lock()
|
t.mu.Lock()
|
||||||
t.mu.Unlock()
|
defer t.mu.Unlock()
|
||||||
|
|
||||||
tt := &textTemplate{t: texttemplate.New("")}
|
tt := &textTemplate{t: texttemplate.New("")}
|
||||||
t.extTextTemplates = append(t.extTextTemplates, tt)
|
t.extTextTemplates = append(t.extTextTemplates, tt)
|
||||||
|
Reference in New Issue
Block a user