From fc44491526727136b8e365676eb63f28bfa9548d Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Sat, 1 Oct 2022 13:08:56 -0400 Subject: fix: process unused (but assigned) error --- cache/repo_cache_bug.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go index dc2b271c..2992421c 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()) -- cgit