aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-15 10:47:16 -0400
committerGitHub <noreply@github.com>2022-06-15 10:47:16 -0400
commitf80910891e4fdb7f03d7993da25e48ccdecaecb7 (patch)
treecc35ba90cc26f8bb1280e08d9899059da01e00f8 /cache
parentb33c1d42fc460467dd4801b9eed9fc689d79c040 (diff)
parentd853a6fbc996762ab264452150558bb92bdbd6fc (diff)
downloadgit-bug-f80910891e4fdb7f03d7993da25e48ccdecaecb7.tar.gz
Merge pull request #808 from selesy/fix/778-git-bug-rm-broken
fix(778): git bug rm broken
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache_bug.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go
index bce01926..f8bf5a2f 100644
--- a/cache/repo_cache_bug.go
+++ b/cache/repo_cache_bug.go
@@ -499,14 +499,10 @@ func (c *RepoCache) NewBugRaw(author *IdentityCache, unixTime int64, title strin
// RemoveBug removes a bug from the cache and repo given a bug id prefix
func (c *RepoCache) RemoveBug(prefix string) error {
- c.muBug.RLock()
-
b, err := c.ResolveBugPrefix(prefix)
if err != nil {
- c.muBug.RUnlock()
return err
}
- c.muBug.RUnlock()
c.muBug.Lock()
err = bug.RemoveBug(c.repo, b.Id())