From 0e2815a7433bffbfc2b523d5e757486a5b9f136a Mon Sep 17 00:00:00 2001 From: Cedric Halbronn Date: Tue, 9 Apr 2024 15:18:54 +0100 Subject: [PATCH] simplify code --- .../src/core/updateSelections/updateSelections.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cursorless-engine/src/core/updateSelections/updateSelections.ts b/packages/cursorless-engine/src/core/updateSelections/updateSelections.ts index 0ab53e9251..dfcde0e1b8 100644 --- a/packages/cursorless-engine/src/core/updateSelections/updateSelections.ts +++ b/packages/cursorless-engine/src/core/updateSelections/updateSelections.ts @@ -382,12 +382,10 @@ export async function performEditsAndUpdateFullSelectionInfos( } }; - await callFunctionAndUpdateSelectionInfos( + return await callFunctionAndUpdateSelectionInfos( rangeUpdater, func, editor.document, originalSelectionInfos, ); - - return selectionInfosToSelections(originalSelectionInfos); }