mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Fix panic on server rebuilds when using both base templates and template.Defer
Fixes #12963
This commit is contained in:
@@ -65,6 +65,9 @@ func (q *EvictingStringQueue) Len() int {
|
||||
|
||||
// Contains returns whether the queue contains v.
|
||||
func (q *EvictingStringQueue) Contains(v string) bool {
|
||||
if q == nil {
|
||||
return false
|
||||
}
|
||||
q.mu.Lock()
|
||||
defer q.mu.Unlock()
|
||||
return q.set[v]
|
||||
|
Reference in New Issue
Block a user