diff options
Diffstat (limited to 'cache/bug_subcache.go')
-rw-r--r-- | cache/bug_subcache.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cache/bug_subcache.go b/cache/bug_subcache.go index a1f4498a..09d7cbba 100644 --- a/cache/bug_subcache.go +++ b/cache/bug_subcache.go @@ -6,6 +6,7 @@ import ( "time" "github.com/git-bug/git-bug/entities/bug" + "github.com/git-bug/git-bug/entities/common" "github.com/git-bug/git-bug/entities/identity" "github.com/git-bug/git-bug/entity" "github.com/git-bug/git-bug/query" @@ -187,11 +188,11 @@ func (c *RepoCacheBug) Query(q *query.Query) ([]entity.Id, error) { // Note: in the future, a proper label policy could be implemented where valid // labels are defined in a configuration file. Until that, the default behavior // is to return the list of labels already used. -func (c *RepoCacheBug) ValidLabels() []bug.Label { +func (c *RepoCacheBug) ValidLabels() []common.Label { c.mu.RLock() defer c.mu.RUnlock() - set := map[bug.Label]interface{}{} + set := map[common.Label]interface{}{} for _, excerpt := range c.excerpts { for _, l := range excerpt.Labels { @@ -199,7 +200,7 @@ func (c *RepoCacheBug) ValidLabels() []bug.Label { } } - result := make([]bug.Label, len(set)) + result := make([]common.Label, len(set)) i := 0 for l := range set { |