diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-20 11:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 11:01:37 +0200 |
commit | 855684149740e2fb8eec21f3d97df2eba39b27c5 (patch) | |
tree | a3bd60a9f533fc6fc11a094038d095510210cd23 /cache/filter.go | |
parent | 58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff) | |
parent | 8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (diff) | |
download | git-bug-855684149740e2fb8eec21f3d97df2eba39b27c5.tar.gz |
Merge pull request #856 from MichaelMure/common-status
move bug.Status in entities/common for reuse
Diffstat (limited to 'cache/filter.go')
-rw-r--r-- | cache/filter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/filter.go b/cache/filter.go index bd2bcfff..299e7c83 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -3,7 +3,7 @@ package cache import ( "strings" - "github.com/MichaelMure/git-bug/entities/bug" + "github.com/MichaelMure/git-bug/entities/common" "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/query" ) @@ -18,7 +18,7 @@ type resolver interface { type Filter func(excerpt *BugExcerpt, resolver resolver) bool // StatusFilter return a Filter that match a bug status -func StatusFilter(status bug.Status) Filter { +func StatusFilter(status common.Status) Filter { return func(excerpt *BugExcerpt, resolver resolver) bool { return excerpt.Status == status } |