mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 00:17:29 +00:00
tpl/tplimpl: Fix mutex unlock
This commit is contained in:
1 file changed
+1
-1
@@ -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