refactor: resultError always emitted on error

This commit is contained in:
Mathias Lundell 2019-12-02 17:35:29 +01:00
parent 5354e9cda6
commit d7d2e99275
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ Client.prototype._sendSocket = function _sendSocket (message,
var sentEmitter = false
function sendResult (event, obj) {
if (event === 'error' && self.listeners('resultError')) {
if (event === 'error') {
self.emit('resultError', obj)
}
if (emitter) {