diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-10-05 16:05:23 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-05 16:05:23 +1100 |
| commit | dc79c8ea59622d19db22dae6753936da2be6412f (patch) | |
| tree | 75465ddc18215115c382b97ac7a0382361f9f69c /internal/authentication/ldap_user_provider_test.go | |
| parent | 9ae703fe5152b09e0484e31d54dec573e9f0ea7c (diff) | |
refactor: any (#4133)
* refactor: any
* refactor: fix test
Diffstat (limited to 'internal/authentication/ldap_user_provider_test.go')
| -rw-r--r-- | internal/authentication/ldap_user_provider_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/authentication/ldap_user_provider_test.go b/internal/authentication/ldap_user_provider_test.go index 2123ad4dd..aeaf5b835 100644 --- a/internal/authentication/ldap_user_provider_test.go +++ b/internal/authentication/ldap_user_provider_test.go @@ -140,7 +140,7 @@ func NewExtendedSearchRequestMatcher(filter, base string, scope, derefAliases in return &ExtendedSearchRequestMatcher{filter, base, scope, derefAliases, typesOnly, attributes} } -func (e *ExtendedSearchRequestMatcher) Matches(x interface{}) bool { +func (e *ExtendedSearchRequestMatcher) Matches(x any) bool { sr := x.(*ldap.SearchRequest) if e.filter != sr.Filter || e.baseDN != sr.BaseDN || e.scope != sr.Scope || e.derefAliases != sr.DerefAliases || @@ -502,7 +502,7 @@ func NewSearchRequestMatcher(expected string) *SearchRequestMatcher { return &SearchRequestMatcher{expected} } -func (srm *SearchRequestMatcher) Matches(x interface{}) bool { +func (srm *SearchRequestMatcher) Matches(x any) bool { sr := x.(*ldap.SearchRequest) return sr.Filter == srm.expected } |
