mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
tpl/tmplimpl/template: Change defer RLock to RUnlock
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
736f84b2d5
commit
5146dc614f
@@ -783,7 +783,7 @@ func (t templateNamespace) Clone(lock bool) *templateNamespace {
|
|||||||
func (t *templateNamespace) Lookup(name string) (tpl.Template, bool) {
|
func (t *templateNamespace) Lookup(name string) (tpl.Template, bool) {
|
||||||
if t.mu != nil {
|
if t.mu != nil {
|
||||||
t.mu.RLock()
|
t.mu.RLock()
|
||||||
defer t.mu.RLock()
|
defer t.mu.RUnlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
templ, found := t.templates[name]
|
templ, found := t.templates[name]
|
||||||
|
Reference in New Issue
Block a user