From 91fd2d15124e9ed0619b2453cda45ae56fd710cb Mon Sep 17 00:00:00 2001 From: Ronnie Date: Fri, 4 Oct 2013 13:52:58 +0200 Subject: [PATCH] Removed separate if for esearch result --- lib/Connection.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Connection.js b/lib/Connection.js index c4ceba2..73a7e2e 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1097,10 +1097,8 @@ Connection.prototype._resUntagged = function(info) { this._caps = info.text.map(function(v) { return v.toUpperCase(); }); else if (type === 'preauth') this.state = 'authenticated'; - else if (type === 'sort' || type === 'thread') - this._curReq.cbargs.push(info.text); - else if (type === 'esearch') - this._curReq.cbargs.push(info.text); + else if (type === 'sort' || type === 'thread' || type === 'esearch') + this._curReq.cbargs.push(info.text); else if (type === 'search') { if (info.text.results !== undefined) { // CONDSTORE-modified search results