From 18f72715d307dee18c32d9beda5a7b2476f86ae2 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Fri, 14 Sep 2018 15:01:30 +0200 Subject: [PATCH] :lipstick: --- .../services/notification/common/notificationService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/workbench/services/notification/common/notificationService.ts b/src/vs/workbench/services/notification/common/notificationService.ts index 0d1e8d4ef9c..71dd806f446 100644 --- a/src/vs/workbench/services/notification/common/notificationService.ts +++ b/src/vs/workbench/services/notification/common/notificationService.ts @@ -55,7 +55,6 @@ export class NotificationService extends Disposable implements INotificationServ } prompt(severity: Severity, message: string, choices: IPromptChoice[], onCancel?: () => void): INotificationHandle { - let handle: INotificationHandle; // Convert choices into primary/secondary actions const actions: INotificationActions = { primary: [], secondary: [] }; @@ -69,7 +68,7 @@ export class NotificationService extends Disposable implements INotificationServ }); // Show notification with actions - handle = this.notify({ severity, message, actions }); + const handle = this.notify({ severity, message, actions }); once(handle.onDidClose)(() => { -- GitLab