diff --git a/internal/fositestoragei/fosite_sotrage_interface.go b/internal/fositestoragei/fosite_storage_interface.go similarity index 100% rename from internal/fositestoragei/fosite_sotrage_interface.go rename to internal/fositestoragei/fosite_storage_interface.go diff --git a/internal/upstreamldap/upstreamldap.go b/internal/upstreamldap/upstreamldap.go index ef7c6d0c..f163f59d 100644 --- a/internal/upstreamldap/upstreamldap.go +++ b/internal/upstreamldap/upstreamldap.go @@ -46,7 +46,7 @@ type LDAPDialer interface { // LDAPDialerFunc makes it easy to use a func as an LDAPDialer. type LDAPDialerFunc func(ctx context.Context, hostAndPort string) (Conn, error) -var _ LDAPDialer = LDAPDialerFunc(func(ctx context.Context, hostAndPort string) (Conn, error) { return nil, nil }) +var _ LDAPDialer = LDAPDialerFunc(nil) func (f LDAPDialerFunc) Dial(ctx context.Context, hostAndPort string) (Conn, error) { return f(ctx, hostAndPort)