Skip to content

Commit

Permalink
Change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Jul 9, 2024
1 parent 95e614b commit 823b7ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export class AppServicePlanRedundancyStep extends AzureWizardPromptStep<IAppServ
'WS',
];

let plan: string;
let family: string;
if ((newPlanSku as SkuDescription)?.family) {
// Nullish coallescing operator should be logically unnecessary, but helps TS compiler understand that this value won't be undefined
plan = (newPlanSku as SkuDescription).family ?? '';
family = (newPlanSku as SkuDescription).family ?? '';
} else {
plan = newPlanSku as string;
family = newPlanSku as string;
}

return allowedServicePlans.includes(plan);
return allowedServicePlans.includes(family);
}

public static isZoneRedundancySupported(location: string, newPlanSku: SkuDescription | string): boolean {
Expand Down

0 comments on commit 823b7ac

Please sign in to comment.