Skip to content

Commit

Permalink
ignore emit
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Aug 31, 2018
1 parent e699128 commit b9e9855
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ class Driver {
if (this._networkStatusMonitor) {
this._networkStatusMonitor.dispatch(event);
}
if (event.params) {
this._eventEmitter.emit(event.method, event.params);
} else {
this._eventEmitter.emit(event.method);
}

// @ts-ignore TODO(bckenny): tsc can't type event.params correctly yet,
// typing as property of union instead of narrowing from union of
// properties. See https://github.com/Microsoft/TypeScript/pull/22348.
this._eventEmitter.emit(event.method, event.params);
});
}

Expand Down

0 comments on commit b9e9855

Please sign in to comment.