Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBurtonQin <bobbqqin@gmail.com>2020-04-21 13:00:21 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-04-21 14:23:31 +0300
commit5146dc614fc45df698ebf890af06421dea988c96 (patch)
tree5894cb8fd93805750514361f3f75959ddcb424b3 /tpl
parent736f84b2d539857f7fdd0e42353af80b4dccfe8d (diff)
tpl/tmplimpl/template: Change defer RLock to RUnlock
Diffstat (limited to 'tpl')
-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]