diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 9ff4d36cd..3183242b7 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -987,6 +987,7 @@ func (m *contentChangeMap) add(dirname string, tp bundleDirType) { case bundleLeaf: m.leafBundles.Insert(dirname, true) default: + m.mu.Unlock() panic("invalid bundle type") } m.mu.Unlock()