fix: process unused (but assigned) error

This commit is contained in:
Steve Moyer 2022-10-01 13:08:56 -04:00
parent d92c1159f8
commit fc44491526
No known key found for this signature in database
GPG Key ID: D8D464C9D22FB8E0

View File

@ -501,7 +501,13 @@ func (c *RepoCache) RemoveBug(prefix string) error {
}
c.muBug.Lock()
err = bug.Remove(c.repo, b.Id())
if err != nil {
c.muBug.Unlock()
return err
}
delete(c.bugs, b.Id())
delete(c.bugExcerpts, b.Id())