Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
Co-authored-by: Musale Martin <[email protected]>
  • Loading branch information
ElinorW and musale authored May 23, 2024
1 parent 6ebfac1 commit 469108d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vscode/microsoft-kiota/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ export async function searchSteps(searchCallBack: (searchQuery: string) => Thena
if(state.searchResults && Object.keys(state.searchResults).length > 0) {
return (input: MultiStepInput) => pickSearchResult(input, state);
}
else {
state.descriptionPath = state.searchQuery;
return (input: MultiStepInput) => inputPathOrUrl(input, state);
}
state.descriptionPath = state.searchQuery;
return (input: MultiStepInput) => inputPathOrUrl(input, state);
}

async function inputPathOrUrl(input: MultiStepInput, state: Partial<OpenState>) {
Expand Down

0 comments on commit 469108d

Please sign in to comment.