hugolib: Add Unlock before panic

This commit is contained in:
Boqin Qin authored and GitHub committed 2020-04-20 17:47:34 +02:00
1 parent cd4d820201
commit 736f84b2d5
1 file changed
+1
+1
View File
@@ -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()