diff options
author | Sladyn <gunnerforlife00@gmail.com> | 2019-03-01 20:14:15 +0530 |
---|---|---|
committer | Sladyn <gunnerforlife00@gmail.com> | 2019-03-02 23:06:55 +0530 |
commit | e825525a08f3370abd8c05802df09613c421fcb2 (patch) | |
tree | 8c55837e5f2eedf3dacaf079442009f0a65a8e4b /cache | |
parent | beecd2dbe449e551d08668adf0b8ace427d09c49 (diff) | |
download | git-bug-e825525a08f3370abd8c05802df09613c421fcb2.tar.gz |
Fixed filter.go
GolangCI complained about an if return else return statement which is fixed in this commit.
Diffstat (limited to 'cache')
-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 |