mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl/tplimpl: Fix mutex unlock
This commit is contained in:
parent
4a2a8afff2
commit
e54213f525
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ type templateHandler struct {
|
|||
// template funcs etc. built-in.
|
||||
func (t *templateHandler) NewTextTemplate() tpl.TemplateParseFinder {
|
||||
t.mu.Lock()
|
||||
t.mu.Unlock()
|
||||
defer t.mu.Unlock()
|
||||
|
||||
tt := &textTemplate{t: texttemplate.New("")}
|
||||
t.extTextTemplates = append(t.extTextTemplates, tt)
|
||||
|
|
Loading…
Reference in a new issue