aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-10-01 13:08:56 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-10-01 13:08:56 -0400
commitfc44491526727136b8e365676eb63f28bfa9548d (patch)
treec4f73e8b1f500eaecc750deba99b7f7cd8e27140 /cache
parentd92c1159f84e07bc6ddb68ba1e5159b44caceb29 (diff)
downloadgit-bug-fc44491526727136b8e365676eb63f28bfa9548d.tar.gz
fix: process unused (but assigned) error
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache_bug.go6
1 files changed, 6 insertions, 0 deletions
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())