Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
  • Loading branch information
jacobheun committed Sep 27, 2019
1 parent abc3fab commit 6713f08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/compat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Compatibility with Go libp2p MDNS

const EE = require('events')
const parallel = require('async/parallel')
const Responder = require('./responder')
const Querier = require('./querier')

Expand Down
2 changes: 1 addition & 1 deletion test/compat/responder.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Responder', () => {
if (!isResponseFrom(event, peerInfos[0])) return

const srvRecord = event.answers.find(a => a.type === 'SRV')
if (!srvRecord) return done(new Error('Missing SRV record'))
if (!srvRecord) return defer.reject(new Error('Missing SRV record'))

const { port } = srvRecord.data || {}
const protos = { A: 'ip4', AAAA: 'ip6' }
Expand Down

0 comments on commit 6713f08

Please sign in to comment.