Skip to content

Commit

Permalink
Merge pull request #1 from hillar/hillar-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
hillar authored Oct 25, 2021
2 parents b64ed9f + 1dd06d2 commit 7c82e2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,7 @@ Client.prototype._sendSocket = function _sendSocket (message,
if (expect === 'abandon') { return sendResult('end', null) }

if (msg instanceof SearchEntry || msg instanceof SearchReference) {
let event = msg.constructor.name
event = event[0].toLowerCase() + event.slice(1)
const event = msg instanceof SearchEntry ? 'searchEntry' : 'searchReference'
return sendResult(event, msg)
} else {
tracker.remove(message.messageID)
Expand Down

0 comments on commit 7c82e2a

Please sign in to comment.