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

Commit

Permalink
chore: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Sep 3, 2017
1 parent 60b3ecb commit 2265564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-multiaddr.js
Expand Up @@ -4,7 +4,7 @@ const multiaddr = require('multiaddr')
const Address6 = require('ip-address').Address6

module.exports = (socket) => {
var mh
let mh

if (socket.remoteFamily === 'IPv6') {
var addr = new Address6(socket.remoteAddress)
Expand Down
1 change: 1 addition & 0 deletions src/listener.js
Expand Up @@ -14,6 +14,7 @@ const getMultiaddr = require('./get-multiaddr')

const IPFS_CODE = 421
const CLOSE_TIMEOUT = 2000

function noop () {}

module.exports = (handler) => {
Expand Down

0 comments on commit 2265564

Please sign in to comment.