Skip to content
Permalink
Browse files

tpl/tplimpl: Fix mutex unlock

  • Loading branch information...
bep committed Mar 16, 2019
1 parent 4a2a8af commit e54213f5257267ed232b2465337c39ddc8c73388
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpl/tplimpl/template.go
@@ -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)

0 comments on commit e54213f

Please sign in to comment.
You can’t perform that action at this time.