Skip to content

Commit

Permalink
Handle promises with a void.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed May 15, 2019
1 parent bab8017 commit 3e20b14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/services/src/kernel/default.ts
Expand Up @@ -58,7 +58,7 @@ export class DefaultKernel implements Kernel.IKernel {
this._clientId = options.clientId || UUID.uuid4();
this._username = options.username || '';

this._readyPromise.promise.then(() => {
void this._readyPromise.promise.then(() => {
this._sendPending();
});

Expand Down Expand Up @@ -832,7 +832,7 @@ export class DefaultKernel implements Kernel.IKernel {
if (this._isReady) {
this._isReady = false;
this._readyPromise = new PromiseDelegate();
this._readyPromise.promise.then(() => {
void this._readyPromise.promise.then(() => {
// when we are ready again, send any pending messages.
this._sendPending();
});
Expand All @@ -843,7 +843,7 @@ export class DefaultKernel implements Kernel.IKernel {
this._isReady = false;
this._readyPromise = new PromiseDelegate();
}
this._readyPromise.promise.catch(this._noOp);
void this._readyPromise.promise.catch(this._noOp);
this._readyPromise.reject('Kernel is dead');
break;
default:
Expand Down

0 comments on commit 3e20b14

Please sign in to comment.