Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Jan 12, 2019
1 parent 2d943b2 commit 7dee361
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const includes = require('lodash/includes')
const isFunction = require('lodash/isFunction')
const Connection = require('interface-connection').Connection
const once = require('once')
const debug = require('debug')
const log = debug('libp2p:stardust')
/* const debug = require('debug')
const log = debug('libp2p:stardust') */
const EE = require('events').EventEmitter

function noop () {}
Expand Down
4 changes: 3 additions & 1 deletion src/micro-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const MPLEX = require('libp2p-mplex')
const debug = require('debug')
const log = debug('libp2p:stardust:microswitch')

function noop () { }

function firstSuccess (errMsg, proms) {
return new Promise((resolve, reject) => {
let triggered = false
Expand Down Expand Up @@ -39,7 +41,7 @@ class MicroSwitch {
this.transports = transports || [new WS()]
this.muxers = muxers || [MPLEX]
this.addresses = addresses || [multiaddr('/ip6/::/tcp/5892/ws')]
this.handler = handler || console.log
this.handler = handler || noop

log('creating microswitch with %o transport(s), %o muxer(s) and %o address(es)', this.transports.length, this.muxers.length, this.addresses.length)

Expand Down
2 changes: 2 additions & 0 deletions test/connect.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

/* eslint-env mocha */

const Client = require('..')
const ID = require('peer-id')
const IDJSON = require('./id.json')
Expand Down
2 changes: 2 additions & 0 deletions test/dial.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

/* eslint-env mocha */

const Client = require('..')
const ID = require('peer-id')
const IDJSON = [require('./id.json'), require('./id2.json')]
Expand Down

0 comments on commit 7dee361

Please sign in to comment.