diff options
author | BurtonQin <bobbqqin@gmail.com> | 2020-04-21 06:00:21 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-04-21 13:23:31 +0200 |
commit | 5146dc614fc45df698ebf890af06421dea988c96 (patch) | |
tree | 5894cb8fd93805750514361f3f75959ddcb424b3 /tpl | |
parent | 736f84b2d539857f7fdd0e42353af80b4dccfe8d (diff) |
tpl/tmplimpl/template: Change defer RLock to RUnlock
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index c01b62136..81b62b342 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -783,7 +783,7 @@ func (t templateNamespace) Clone(lock bool) *templateNamespace { func (t *templateNamespace) Lookup(name string) (tpl.Template, bool) { if t.mu != nil { t.mu.RLock() - defer t.mu.RLock() + defer t.mu.RUnlock() } templ, found := t.templates[name] |