Skip to content

Commit

Permalink
use nullish coalescing operator instead of Logical OR
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed May 21, 2024
1 parent 77cba1e commit 6c8f59c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vscode/microsoft-kiota/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function openManifestSteps() {
title,
step: step++,
totalSteps: totalSteps,
value: state.manifestPath || '',
value: state.manifestPath ?? '',
prompt: l10n.t('A path or URL to an API manifest'),
validate: validateIsNotEmpty,
shouldResume: shouldResume
Expand Down Expand Up @@ -101,7 +101,7 @@ export async function searchSteps(searchCallBack: (searchQuery: string) => Thena
title,
step: step++,
totalSteps: totalSteps,
value: state.searchQuery || '',
value: state.searchQuery ?? '',
prompt: l10n.t('Search or paste a path to an API description'),
validate: validateIsNotEmpty,
shouldResume: shouldResume
Expand Down Expand Up @@ -200,7 +200,7 @@ export async function generateSteps(existingConfiguration: Partial<GenerateState
title: `${l10n.t('Create a new API client')} - ${l10n.t('class')}`,
step: step++,
totalSteps: totalSteps,
value: state.clientClassName || '',
value: state.clientClassName ?? '',
placeholder: 'ApiClient',
prompt: l10n.t('Choose a name for the client class'),
validate: validateIsNotEmpty,
Expand Down Expand Up @@ -260,7 +260,7 @@ export async function generateSteps(existingConfiguration: Partial<GenerateState
title: `${l10n.t('Create a new plugin')} - ${('plugin name')}`,
step: step++,
totalSteps: 3,
value: state.pluginName || '',
value: state.pluginName ?? '',
placeholder: 'MyPlugin',
prompt: l10n.t('Choose a name for the plugin'),
validate: validateIsNotEmpty,
Expand Down Expand Up @@ -299,7 +299,7 @@ export async function generateSteps(existingConfiguration: Partial<GenerateState
title: `${l10n.t('Create a new manifest')} - ${('manifest name')}`,
step: step++,
totalSteps: 3,
value: state.pluginName || '',
value: state.pluginName ?? '',
placeholder: 'MyManifest',
prompt: l10n.t('Choose a name for the manifest'),
validate: validateIsNotEmpty,
Expand Down

0 comments on commit 6c8f59c

Please sign in to comment.