diff --git a/auth/CHANGELOG.md b/auth/CHANGELOG.md index a2e1444246..912c8b7a3c 100644 --- a/auth/CHANGELOG.md +++ b/auth/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.0.2 - 2024-12-19 + +* [#1861](https://github.com/microsoft/vscode-azuretools/pull/1861) Remove unecessary if statement + ## 4.0.1 - 2024-12-17 * [#1856](https://github.com/microsoft/vscode-azuretools/pull/1856) Fix tenantId undefined error diff --git a/auth/package-lock.json b/auth/package-lock.json index 5843fcb7c6..b9b4615b65 100644 --- a/auth/package-lock.json +++ b/auth/package-lock.json @@ -1,12 +1,12 @@ { "name": "@microsoft/vscode-azext-azureauth", - "version": "4.0.1", + "version": "4.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@microsoft/vscode-azext-azureauth", - "version": "4.0.1", + "version": "4.0.2", "license": "MIT", "dependencies": { "@azure/arm-resources-subscriptions": "^2.1.0", diff --git a/auth/package.json b/auth/package.json index fcf7e84210..80ade4b935 100644 --- a/auth/package.json +++ b/auth/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/vscode-azext-azureauth", "author": "Microsoft Corporation", - "version": "4.0.1", + "version": "4.0.2", "description": "Azure authentication helpers for Visual Studio Code", "tags": [ "azure", diff --git a/auth/src/utils/getUnauthenticatedTenants.ts b/auth/src/utils/getUnauthenticatedTenants.ts index a7aecd7870..80b21cba98 100644 --- a/auth/src/utils/getUnauthenticatedTenants.ts +++ b/auth/src/utils/getUnauthenticatedTenants.ts @@ -13,11 +13,8 @@ export async function getUnauthenticatedTenants(subscriptionProvider: AzureSubsc const tenants = await subscriptionProvider.getTenants(); const unauthenticatedTenants: TenantIdDescription[] = []; for await (const tenant of tenants) { - // Occasiounally users have run into one of their tenants being undefined https://github.com/microsoft/vscode-azureresourcegroups/issues/966 - if (tenant) { - if (!await subscriptionProvider.isSignedIn(tenant.tenantId, tenant.account)) { - unauthenticatedTenants.push(tenant); - } + if (!await subscriptionProvider.isSignedIn(tenant.tenantId, tenant.account)) { + unauthenticatedTenants.push(tenant); } }