From fc44491526727136b8e365676eb63f28bfa9548d Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Sat, 1 Oct 2022 13:08:56 -0400 Subject: [PATCH] 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 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())