From 8a4496207f40a478870af303c8007ee89722e8a9 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 25 Nov 2021 17:29:14 +0200 Subject: [PATCH] 373: void Notification.error Signed-off-by: Roman --- src/renderer/components/+extensions/extensions.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/+extensions/extensions.tsx b/src/renderer/components/+extensions/extensions.tsx index 21d3d78acc..5df3573181 100644 --- a/src/renderer/components/+extensions/extensions.tsx +++ b/src/renderer/components/+extensions/extensions.tsx @@ -356,7 +356,7 @@ export async function attemptInstallByInfo({ name, version, requireConfirmation return attemptInstall({ fileName, dataP }, disposer); } -async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): Promise void)> { +async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): Promise { const dispose = disposer(ExtensionInstallationStateStore.startPreInstall(), d); const validatedRequest = await createTempFilesAndValidate(request); @@ -370,7 +370,7 @@ async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): if (curState !== ExtensionInstallationState.IDLE) { dispose(); - return Notifications.error( + return void Notifications.error(
Extension Install Collision:

The {name} extension is currently {curState.toLowerCase()}.

@@ -416,7 +416,7 @@ async function attemptInstall(request: InstallRequest, d?: ExtendableDisposer): } async function attemptInstalls(filePaths: string[]): Promise { - const promises: Promise[] = []; + const promises: Promise[] = []; for (const filePath of filePaths) { promises.push(attemptInstall({