straight out code because staticcheck error

This commit is contained in:
Florian Schade
2020-11-26 22:32:06 +01:00
committed by Florian Schade
parent 2a259dd3b1
commit 2bc7f2175c

View File

@@ -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
}