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 ca5f95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 @@ -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 ca5f95a

Please sign in to comment.