cmd/go/internal/modfetch: add Unlock before return in checkModSum

This commit is contained in:
BurtonQin 2020-04-21 07:15:04 -04:00
parent 876c1feb7d
commit afeb3763dd
1 changed files with 1 additions and 0 deletions

View File

@ -514,6 +514,7 @@ func checkModSum(mod module.Version, h string) error {
goSum.mu.Lock()
inited, err := initGoSum()
if err != nil {
goSum.mu.Unlock()
return err
}
done := inited && haveModSumLocked(mod, h)