diff --git a/authenticator.go b/authenticator.go index e6b7441..185547f 100644 --- a/authenticator.go +++ b/authenticator.go @@ -27,6 +27,7 @@ type AuthenticatorOption[S any] interface { type authenticatorOptionFunc[S any] func(*Authenticator[S]) error +//nolint:unused func (aof authenticatorOptionFunc[S]) apply(a *Authenticator[S]) error { return aof(a) } // WithAuthenticateListeners adds listeners to the Authenticator being built. diff --git a/authorizer.go b/authorizer.go index c167c5b..977c319 100644 --- a/authorizer.go +++ b/authorizer.go @@ -27,6 +27,7 @@ type AuthorizerOption[S any] interface { type authorizerOptionFunc[S any] func(*Authorizer[S]) error +//nolint:unused func (aof authorizerOptionFunc[S]) apply(a *Authorizer[S]) error { return aof(a) } // WithAuthorizeListeners adds listeners to the Authorizer being built.