vbump and typo fix (#19374)

This commit is contained in:
Christopher Suh
2022-05-13 13:18:57 -07:00
committed by GitHub
parent b669ab9481
commit 8352c7631c
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ export class AccountFeature implements StaticFeature {
// find account
const accountList = await azdata.accounts.getAllAccounts();
const account = accountList.find(a => a.key.accountId === request.accountId);
if (account) {
if (!account) {
console.log(`Failed to find azure account ${request.accountId} when executing token refresh`);
throw Error(localizedConstants.failedToFindAccount(request.accountId));
}