Skip to content

Commit

Permalink
hugolib: Add Unlock before panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Boqin Qin committed Apr 20, 2020
1 parent cd4d820 commit 736f84b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/hugo_sites.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 736f84b

Please sign in to comment.