diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-04-05 00:01:08 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-04-05 00:01:08 +0200 |
commit | 57f0c2f25da3316efbff63f7f8dc73df20705320 (patch) | |
tree | be6cf69aad498216fa86058b71e2df9a31ebfbd6 /cache | |
parent | 682da55271b92deb148438450284403feaa21dcc (diff) | |
download | git-bug-57f0c2f25da3316efbff63f7f8dc73df20705320.tar.gz |
improve docs
Diffstat (limited to 'cache')
-rw-r--r-- | cache/filter.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cache/filter.go b/cache/filter.go index 7b1a6054..b26e7ae1 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -66,12 +66,12 @@ func ActorFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } @@ -87,12 +87,12 @@ func ParticipantFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } |