Skip to content

Commit

Permalink
Enforce naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and authored Jul 29, 2023
1 parent 870db22 commit c6e3da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ class Chrome extends EventEmitter {

_handleConnectionClose() {
// make sure to complete all the unresolved callbacks
const error = new Error('WebSocket connection closed');
const err = new Error('WebSocket connection closed');
for (const callback of Object.values(this._callbacks)) {
callback(error);
callback(err);
}
this._callbacks = {};
}
Expand Down

0 comments on commit c6e3da6

Please sign in to comment.