diff options
author | Boqin Qin <bobbqqin@bupt.edu.cn> | 2020-04-20 23:47:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 17:47:34 +0200 |
commit | 736f84b2d539857f7fdd0e42353af80b4dccfe8d (patch) | |
tree | 35a95728f70a6659bfef104315283a21c35cba3e /hugolib | |
parent | cd4d8202016bd3eb5ed9144c8945edaba73c8cf4 (diff) |
hugolib: Add Unlock before panic
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/hugo_sites.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 9ff4d36cd..3183242b7 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -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() |