@@ -191,7 +191,7 @@ Client.prototype.abandon = function abandon (messageId, controls, callback) {
191191
192192 const req = new AbandonRequest ( {
193193 abandonId : messageId ,
194- controls : controls
194+ controls
195195 } )
196196
197197 return this . _send ( req , 'abandon' , null , callback )
@@ -247,7 +247,7 @@ Client.prototype.add = function add (name, entry, controls, callback) {
247247 const req = new AddRequest ( {
248248 entry : ensureDN ( name ) ,
249249 attributes : entry ,
250- controls : controls
250+ controls
251251 } )
252252
253253 return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -286,7 +286,7 @@ Client.prototype.bind = function bind (name,
286286 name : name || '' ,
287287 authentication : 'Simple' ,
288288 credentials : credentials || '' ,
289- controls : controls
289+ controls
290290 } )
291291
292292 // Connection errors will be reported to the bind callback too (useful when the LDAP server is not available)
@@ -329,8 +329,8 @@ Client.prototype.compare = function compare (name,
329329 const req = new CompareRequest ( {
330330 entry : ensureDN ( name ) ,
331331 attribute : attr ,
332- value : value ,
333- controls : controls
332+ value,
333+ controls
334334 } )
335335
336336 return this . _send ( req , CMP_EXPECT , null , function ( err , res ) {
@@ -360,7 +360,7 @@ Client.prototype.del = function del (name, controls, callback) {
360360
361361 const req = new DeleteRequest ( {
362362 entry : ensureDN ( name ) ,
363- controls : controls
363+ controls
364364 } )
365365
366366 return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -397,7 +397,7 @@ Client.prototype.exop = function exop (name, value, controls, callback) {
397397 const req = new ExtendedRequest ( {
398398 requestName : name ,
399399 requestValue : value ,
400- controls : controls
400+ controls
401401 } )
402402
403403 return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , function ( err , res ) {
@@ -471,8 +471,8 @@ Client.prototype.modify = function modify (name, change, controls, callback) {
471471
472472 const req = new ModifyRequest ( {
473473 object : ensureDN ( name ) ,
474- changes : changes ,
475- controls : controls
474+ changes,
475+ controls
476476 } )
477477
478478 return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -511,7 +511,7 @@ Client.prototype.modifyDN = function modifyDN (name,
511511 const req = new ModifyDNRequest ( {
512512 entry : DN . fromString ( name ) ,
513513 deleteOldRdn : true ,
514- controls : controls
514+ controls
515515 } )
516516
517517 if ( newDN . length !== 1 ) {
@@ -629,11 +629,11 @@ Client.prototype.search = function search (base,
629629 }
630630
631631 const pager = new SearchPager ( {
632- callback : callback ,
633- controls : controls ,
632+ callback,
633+ controls,
634634 pageSize : size ,
635635 pagePause : pageOpts . pagePause ,
636- sendRequest : sendRequest
636+ sendRequest
637637 } )
638638 pager . begin ( )
639639 } else {
@@ -723,7 +723,7 @@ Client.prototype.starttls = function starttls (options,
723723 self . _tracker . parser . write ( data )
724724 } )
725725 secure . on ( 'error' , function ( err ) {
726- self . log . trace ( { err : err } , 'error event: %s' , new Error ( ) . stack )
726+ self . log . trace ( { err } , 'error event: %s' , new Error ( ) . stack )
727727
728728 self . emit ( 'error' , err )
729729 sock . destroy ( )
@@ -744,7 +744,7 @@ Client.prototype.starttls = function starttls (options,
744744 const req = new ExtendedRequest ( {
745745 requestName : '1.3.6.1.4.1.1466.20037' ,
746746 requestValue : null ,
747- controls : controls
747+ controls
748748 } )
749749
750750 return this . _send ( req ,
@@ -857,7 +857,7 @@ Client.prototype.connect = function connect () {
857857 function initSocket ( server ) {
858858 tracker = messageTrackerFactory ( {
859859 id : server ? server . href : self . socketPath ,
860- parser : new Parser ( { log : log } )
860+ parser : new Parser ( { log } )
861861 } )
862862
863863 // This won't be set on TLS. So. Very. Annoying.
@@ -996,7 +996,7 @@ Client.prototype.connect = function connect () {
996996 socket . end ( )
997997 } )
998998 socket . on ( 'error' , function onSocketError ( err ) {
999- log . trace ( { err : err } , 'error event: %s' , new Error ( ) . stack )
999+ log . trace ( { err } , 'error event: %s' , new Error ( ) . stack )
10001000
10011001 self . emit ( 'error' , err )
10021002 socket . destroy ( )
0 commit comments