Fix more index tests

This commit is contained in:
Benedikt Kulmann
2020-10-16 09:57:08 +02:00
parent 37d7daf098
commit 9dbf77fad1
2 changed files with 2 additions and 6 deletions
-5
View File
@@ -52,10 +52,6 @@ func (s Service) deflateMembers(g *proto.Group) {
// ListGroups implements the GroupsServiceHandler interface
func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out *proto.ListGroupsResponse) (err error) {
var searchResults []string
if err != nil {
s.log.Error().Err(err).Msg("could not execute bleve search")
return merrors.InternalServerError(s.id, "could not execute bleve search: %v", err.Error())
}
out.Groups = make([]*proto.Group, 0)
if in.Query == "" {
@@ -68,7 +64,6 @@ func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out
if len(match) == 2 {
searchResults = []string{match[1]}
}
*/
for _, hit := range searchResults {