aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-04-05 00:01:08 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-04-05 00:01:08 +0200
commit57f0c2f25da3316efbff63f7f8dc73df20705320 (patch)
treebe6cf69aad498216fa86058b71e2df9a31ebfbd6 /cache
parent682da55271b92deb148438450284403feaa21dcc (diff)
downloadgit-bug-57f0c2f25da3316efbff63f7f8dc73df20705320.tar.gz
improve docs
Diffstat (limited to 'cache')
-rw-r--r--cache/filter.go12
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
}
}