summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/template.go
diff options
context:
space:
mode:
authorBurtonQin <bobbqqin@gmail.com>2020-04-21 06:00:21 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-04-21 13:23:31 +0200
commit5146dc614fc45df698ebf890af06421dea988c96 (patch)
tree5894cb8fd93805750514361f3f75959ddcb424b3 /tpl/tplimpl/template.go
parent736f84b2d539857f7fdd0e42353af80b4dccfe8d (diff)
tpl/tmplimpl/template: Change defer RLock to RUnlock
Diffstat (limited to 'tpl/tplimpl/template.go')
-rw-r--r--tpl/tplimpl/template.go2
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]