diff options
-rw-r--r-- | cache/filter.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cache/filter.go b/cache/filter.go index a4254f2e..dc134260 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -58,12 +58,8 @@ func LabelFilter(label string) Filter { // TitleFilter return a Filter that match a title func TitleFilter(title string) Filter { return func(excerpt *BugExcerpt) bool { - if strings.Contains(excerpt.Title, title) { - return true - } - return false + return strings.Contains(excerpt.Title, title) } - } // NoLabelFilter return a Filter that match the absence of labels |