diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-10-01 13:37:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 13:37:19 -0400 |
commit | ef08155116080124789cc3cd76cad29c01e10e37 (patch) | |
tree | c4f73e8b1f500eaecc750deba99b7f7cd8e27140 /cache/repo_cache_bug.go | |
parent | d92c1159f84e07bc6ddb68ba1e5159b44caceb29 (diff) | |
parent | fc44491526727136b8e365676eb63f28bfa9548d (diff) | |
download | git-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.go | 6 |
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()) |