From 3aa10fa8f0261f2e93ebcf27c73f4e375d191c07 Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Wed, 14 Oct 2020 17:27:46 +0200 Subject: [PATCH] Fix lint --- accounts/pkg/service/v0/accounts.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accounts/pkg/service/v0/accounts.go b/accounts/pkg/service/v0/accounts.go index dcc59cce8..7a0df76de 100644 --- a/accounts/pkg/service/v0/accounts.go +++ b/accounts/pkg/service/v0/accounts.go @@ -185,12 +185,13 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest } // id eq 'marie' or on_premises_sam_account_name eq 'marie' + // id eq 'f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c' or on_premises_sam_account_name eq 'f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c' var idOrQuery = regexp.MustCompile(`^id eq '(.*)' or on_premises_sam_account_name eq '(.*)'$`) match = idOrQuery.FindStringSubmatch(in.Query) if len(match) == 3 { - qId, qSam := match[1], match[2] + qID, qSam := match[1], match[2] tmp := &proto.Account{} - _ = s.repo.LoadAccount(ctx, qId, tmp) + _ = s.repo.LoadAccount(ctx, qID, tmp) searchResults, err = s.index.FindBy(&proto.Account{}, "OnPremisesSamAccountName", qSam) if tmp.Id != "" {