Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
feat(deps, lint): update deps, remove unnecessary lint patch, remove
Browse files Browse the repository at this point in the history
unnsupported feature
  • Loading branch information
daviddias committed Sep 6, 2016
1 parent 37a9aa3 commit e79151c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/agreement.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ exports.handlerSelector = (rawConn, handlersMap) => {
}
log('received: %s', data.toString())
const protocol = data.toString().slice(0, -1)
const [key] = Object.keys(handlersMap).filter((id) => id === protocol)
const result = Object.keys(handlersMap).filter((id) => id === protocol)
const key = result && result[0]

if (key) {
log('ack: %s', protocol)
Expand Down

0 comments on commit e79151c

Please sign in to comment.