Revert "Added additional code path if user.UniqueId not set (#1105)" (#1108)

This reverts commit 2354dfc4c7.
This commit is contained in:
Charles Gagnon
2020-10-30 09:17:06 -07:00
committed by GitHub
parent 4ce9416219
commit b3bd1f8f99

View File

@@ -222,10 +222,9 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
if (user != null)
{
if (user.UniqueId != "") {
result = _subscriptionCache.Get(user.UniqueId);
}
else {
result = _subscriptionCache.Get(user.UniqueId);
if (result == null)
{
result = await GetSubscriptionFromServiceAsync(user);
_subscriptionCache.UpdateCache(user.UniqueId, result);
}