diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go index dc2b271cd84455f7c46a48f5467e844ef19590f3..2992421c4a4e6cbe2399942214c1924defb06cb3 100644 --- a/cache/repo_cache_bug.go +++ b/cache/repo_cache_bug.go @@ -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())