From f577814b547eecc6a94f4451880cbfb2c71b82f9 Mon Sep 17 00:00:00 2001 From: Anthony Zhao Date: Wed, 24 Apr 2024 12:33:42 -0700 Subject: [PATCH] removed useless brackets --- pkg/ldap/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ldap/client.go b/pkg/ldap/client.go index 877a15cb..cf3c5f5b 100644 --- a/pkg/ldap/client.go +++ b/pkg/ldap/client.go @@ -81,7 +81,7 @@ func (c *Client) getConnection(ctx context.Context, isModify bool, f func(client // If we are revoking a user's membership from a resource, and the user is not a member of the resource, we don't want to return an error. // If we are adding a user to a resource, and the user is already a member of the resource, we also don't want to return an error. - if (ldap.IsErrorAnyOf(err, ldap.LDAPResultAttributeOrValueExists, ldap.LDAPResultEntryAlreadyExists, ldap.LDAPResultUnwillingToPerform)) && isModify { + if ldap.IsErrorAnyOf(err, ldap.LDAPResultAttributeOrValueExists, ldap.LDAPResultEntryAlreadyExists, ldap.LDAPResultUnwillingToPerform) && isModify { return nil } l.Error("baton-ldap: client failed to run function", zap.Error(err))