mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
tpl/tmplimpl/template: Change defer RLock to RUnlock
This commit is contained in:
1 parent
736f84b2d5
commit
5146dc614f
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user