mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib: Add Unlock before panic
This commit is contained in:
parent
cd4d820201
commit
736f84b2d5
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue