From 469108d97be0142d6e8e35ff8dc0d864b82c6f5f Mon Sep 17 00:00:00 2001 From: Elinor Date: Thu, 23 May 2024 13:13:33 +0300 Subject: [PATCH] remove else Co-authored-by: Musale Martin --- vscode/microsoft-kiota/src/steps.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vscode/microsoft-kiota/src/steps.ts b/vscode/microsoft-kiota/src/steps.ts index 12d75531e5..aa65c3c9e2 100644 --- a/vscode/microsoft-kiota/src/steps.ts +++ b/vscode/microsoft-kiota/src/steps.ts @@ -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) {