Skip to content

Commit

Permalink
chore: linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stoprocent committed Feb 26, 2025
1 parent 11be903 commit 03fd811
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/uart.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class BluetoothHciSocket extends EventEmitter {
const uartParams = this._getSerialParams(params);
const { port, baudRate } = uartParams.uart;
const retryConnection = params.retryConnection || 10;
let retryCount = 0;

if (typeof port !== 'string' || !Number.isInteger(baudRate)) {
throw new Error('Invalid UART parameters');
Expand Down Expand Up @@ -89,7 +88,7 @@ class BluetoothHciSocket extends EventEmitter {
});
}

async _handleReconnection(devId, params, mode, port, maxRetries) {
async _handleReconnection (devId, params, mode, port, maxRetries) {
let retryCount = 0;
this._isReconnectionCancelled = false; // Reset cancellation flag on new attempt

Expand Down

0 comments on commit 03fd811

Please sign in to comment.