hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 5146dc614fc45df698ebf890af06421dea988c96
parent 736f84b2d539857f7fdd0e42353af80b4dccfe8d
Author: BurtonQin <bobbqqin@gmail.com>
Date:   Tue, 21 Apr 2020 06:00:21 -0400

tpl/tmplimpl/template: Change defer RLock to RUnlock

Diffstat:
Mtpl/tplimpl/template.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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]