mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
fix: process unused (but assigned) error
This commit is contained in:
parent
d92c1159f8
commit
fc44491526
6
cache/repo_cache_bug.go
vendored
6
cache/repo_cache_bug.go
vendored
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user