diff options
Diffstat (limited to 'extensions/github-authentication/src/common/utils.ts')
-rw-r--r-- | extensions/github-authentication/src/common/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/github-authentication/src/common/utils.ts b/extensions/github-authentication/src/common/utils.ts index c9511ff9b79..b3da59cd08d 100644 --- a/extensions/github-authentication/src/common/utils.ts +++ b/extensions/github-authentication/src/common/utils.ts @@ -51,7 +51,7 @@ export function promiseFromEvent<T, U>( event: Event<T>, adapter: PromiseAdapter<T, U> = passthrough): { promise: Promise<U>; cancel: EventEmitter<void> } { let subscription: Disposable; - let cancel = new EventEmitter<void>(); + const cancel = new EventEmitter<void>(); return { promise: new Promise<U>((resolve, reject) => { cancel.event(_ => reject('Cancelled')); |