Skip to content

Commit

Permalink
tpl/tplimpl: Fix mutex unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 16, 2019
1 parent 4a2a8af commit e54213f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/tplimpl/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e54213f

Please sign in to comment.