shithub: hugo

Download patch

ref: 5146dc614fc45df698ebf890af06421dea988c96
parent: 736f84b2d539857f7fdd0e42353af80b4dccfe8d
author: BurtonQin <bobbqqin@gmail.com>
date: Tue Apr 21 02:00:21 EDT 2020

tpl/tmplimpl/template: Change defer RLock to RUnlock

--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -783,7 +783,7 @@
 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]