Early return in endpointDiscoveryEnabled
Even when endpointDiscoveryDisabled is set to true, DEFAULT_ENDPOINT_DISCOVERY_PROVIDER still goes through default endpoint discovery providers, loads profiles, etc.
This PR changes endpointDiscoveryEnabled behavior to exit early.
In case when endpoint discovery is explicitly enabled or disabled, endpointDiscoveryChainSetting would be ignored anyways.
I couldn't find any tests for this functionality.
Sorry, I think we've actually fixed this one independent of this PR.
Actually, that was just V2 that I was looking at. It may not be fixed in V1.
would it still make sense to fix it in v1 too, what do you think, @millems ?
Closing this PR, we don't have plans to merge this at this moment.