Fixed filter.go

Sladyn created

GolangCI complained about an if return else return statement which is fixed in this commit.

Change summary

cache/filter.go | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

Detailed changes

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