From e825525a08f3370abd8c05802df09613c421fcb2 Mon Sep 17 00:00:00 2001 From: Sladyn Date: Fri, 1 Mar 2019 20:14:15 +0530 Subject: Fixed filter.go GolangCI complained about an if return else return statement which is fixed in this commit. --- cache/filter.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cache') 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 -- cgit