aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache_bug.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-10-01 13:37:19 -0400
committerGitHub <noreply@github.com>2022-10-01 13:37:19 -0400
commitef08155116080124789cc3cd76cad29c01e10e37 (patch)
treec4f73e8b1f500eaecc750deba99b7f7cd8e27140 /cache/repo_cache_bug.go
parentd92c1159f84e07bc6ddb68ba1e5159b44caceb29 (diff)
parentfc44491526727136b8e365676eb63f28bfa9548d (diff)
downloadgit-bug-ef08155116080124789cc3cd76cad29c01e10e37.tar.gz
Merge pull request #892 from MichaelMure/fix-process-unused-err
fix: process unused (but assigned) error
Diffstat (limited to 'cache/repo_cache_bug.go')
-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())