mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Add Unlock before panic
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user