From c6e3da676043e2e633d1fa970a68247a55f4475f Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 29 Jul 2023 13:32:57 +0200 Subject: [PATCH] Enforce naming conventions --- lib/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index 48c0972..b093d1e 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -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 = {}; }