mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +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:
|
case bundleLeaf:
|
||||||
m.leafBundles.Insert(dirname, true)
|
m.leafBundles.Insert(dirname, true)
|
||||||
default:
|
default:
|
||||||
|
m.mu.Unlock()
|
||||||
panic("invalid bundle type")
|
panic("invalid bundle type")
|
||||||
}
|
}
|
||||||
m.mu.Unlock()
|
m.mu.Unlock()
|
||||||
|
Reference in New Issue
Block a user