From 2bc7f2175c607fe2a27d1e8e3cd7ef51fa03ce37 Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Thu, 26 Nov 2020 22:32:06 +0100 Subject: [PATCH] straight out code because staticcheck error --- accounts/pkg/service/v0/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/pkg/service/v0/accounts.go b/accounts/pkg/service/v0/accounts.go index 2d53adb06..7fdc74452 100644 --- a/accounts/pkg/service/v0/accounts.go +++ b/accounts/pkg/service/v0/accounts.go @@ -187,7 +187,7 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest if e == nil { suspicious = !isPasswordValid(s.log, a.PasswordProfile.Password, password) - } else if bytes.Compare(e.V.([]byte), m) != 0 { + } else if !bytes.Equal(e.V.([]byte), m) { suspicious = true }