From e6a007e03277a0efffb7719d57ef478defe8ddbb Mon Sep 17 00:00:00 2001 From: Yunong Xiao Date: Mon, 19 Dec 2011 17:09:38 -0800 Subject: [PATCH] minor fixes to revert new lines. --- lib/messages/result.js | 1 + lib/messages/search_request.js | 1 - lib/messages/search_response.js | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/messages/result.js b/lib/messages/result.js index 55624ec..36b9632 100644 --- a/lib/messages/result.js +++ b/lib/messages/result.js @@ -60,6 +60,7 @@ module.exports = LDAPResult; LDAPResult.prototype.end = function(status) { assert.ok(this.connection); + if (typeof(status) === 'number') this.status = status; diff --git a/lib/messages/search_request.js b/lib/messages/search_request.js index 6b03857..bc720c0 100644 --- a/lib/messages/search_request.js +++ b/lib/messages/search_request.js @@ -30,7 +30,6 @@ function SearchRequest(options) { options = {}; } - options.protocolOp = Protocol.LDAP_REQ_SEARCH; LDAPMessage.call(this, options); diff --git a/lib/messages/search_response.js b/lib/messages/search_response.js index 8660f4e..0fa4ce8 100644 --- a/lib/messages/search_response.js +++ b/lib/messages/search_response.js @@ -41,8 +41,6 @@ module.exports = SearchResponse; * Defaults to 'false'. */ SearchResponse.prototype.send = function(entry, nofiltering) { - this.log.info('entry', entry); - this.log.info('nofiltering', nofiltering); if (!entry || typeof(entry) !== 'object') throw new TypeError('entry (SearchEntry) required'); if (nofiltering === undefined) @@ -89,7 +87,6 @@ SearchResponse.prototype.send = function(entry, nofiltering) { } try { - this.log.info('in search response send'); if (this.log.isDebugEnabled()) this.log.debug('%s: sending: %j', this.connection.ldap.id, entry.json);