From 99f237bba126782b915692cb1880778c7bdb97cd Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Fri, 6 Sep 2019 11:30:46 +0200 Subject: [PATCH] chore: fix lint License: MIT Signed-off-by: Jacob Heun --- src/index.js | 2 +- test/utils/upgrader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 34a9226..0678b34 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ const { AbortError } = require('interface-transport') function noop () {} class TCP { - constructor(options) { + constructor (options) { assert(options && options.upgrader, 'An Upgrader must be provided') this.upgrader = options.upgrader } diff --git a/test/utils/upgrader.js b/test/utils/upgrader.js index 606f6ee..13ffc9b 100644 --- a/test/utils/upgrader.js +++ b/test/utils/upgrader.js @@ -2,5 +2,5 @@ module.exports = { upgradeOutbound: (conn) => conn, - upgradeInbound: (conn) => conn, + upgradeInbound: (conn) => conn }