mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
tpl/tmplimpl/template: Change defer RLock to RUnlock
This commit is contained in:
parent
736f84b2d5
commit
5146dc614f
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue