fix(shell): do not lock template cache

resolves #3254
This commit is contained in:
Jan De Dobbeleer 2022-12-27 17:31:03 +01:00 committed by Jan De Dobbeleer
parent 07206e5aae
commit 3cdb3bfc1d

View file

@ -708,8 +708,6 @@ func (env *Shell) Logs() string {
}
func (env *Shell) TemplateCache() *TemplateCache {
lock.Lock()
defer lock.Unlock()
defer env.Trace(time.Now(), "TemplateCache")
if env.tmplCache != nil {
return env.tmplCache