From 671ba33818d5381a6d5860a7c33636cee4572c06 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Thu, 10 Dec 2020 12:14:24 +0100 Subject: [PATCH] chore: fix lint --- src/circuit/circuit/stream-handler.js | 2 +- src/types.ts | 1 - src/upgrader.js | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/circuit/circuit/stream-handler.js b/src/circuit/circuit/stream-handler.js index c61a99f261..6c334af77f 100644 --- a/src/circuit/circuit/stream-handler.js +++ b/src/circuit/circuit/stream-handler.js @@ -73,7 +73,7 @@ class StreamHandler { } /** - * @param {CircuitMessage} msg + * @param {CircuitMessage} msg */ end (msg) { this.write(msg) diff --git a/src/types.ts b/src/types.ts index 088c56770a..de140d4bbe 100644 --- a/src/types.ts +++ b/src/types.ts @@ -89,7 +89,6 @@ export interface CircuitMessageProto extends MessageProto { } } - export type Exchange = { id: Uint8Array pubkey: PublicKey diff --git a/src/upgrader.js b/src/upgrader.js index f6af1e9f67..fab99ae037 100644 --- a/src/upgrader.js +++ b/src/upgrader.js @@ -218,9 +218,8 @@ class Upgrader { }) { let muxer let newStream - // eslint-disable-next-line prefer-const /** @type {Connection} */ - let connection + let connection // eslint-disable-line prefer-const if (Muxer) { // Create the muxer