mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
hugolib: Add Unlock before panic
This commit is contained in:
1 parent
cd4d820201
commit
736f84b2d5
1 file changed
+1
@@ -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