diff options
author | Sladyn <gunnerforlife00@gmail.com> | 2019-03-02 23:58:15 +0530 |
---|---|---|
committer | Sladyn <gunnerforlife00@gmail.com> | 2019-03-02 23:58:15 +0530 |
commit | f1d5ca4ff4e8f20f21e2cdc65fe854d6f9c16fee (patch) | |
tree | 80384da7f761f836edc3668d391376109f388d06 /cache/filter.go | |
parent | 0c42a7c33ef02cdb72b110b65e36e0e426c19359 (diff) | |
download | git-bug-f1d5ca4ff4e8f20f21e2cdc65fe854d6f9c16fee.tar.gz |
Rebased and updated.
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 dc134260..a5aca8fb 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -57,7 +57,7 @@ func LabelFilter(label string) Filter { // TitleFilter return a Filter that match a title func TitleFilter(title string) Filter { - return func(excerpt *BugExcerpt) bool { + return func(repo *RepoCache, excerpt *BugExcerpt) bool { return strings.Contains(excerpt.Title, title) } } @@ -96,7 +96,7 @@ func (f *Filters) Match(repoCache *RepoCache, excerpt *BugExcerpt) bool { return false } - if match := f.andMatch(f.Title, excerpt); !match { + if match := f.andMatch(f.Title, repoCache, excerpt); !match { return false } |