Lint fixes
This commit is contained in:
parent
ce243d5318
commit
bc61f67b12
|
@ -120,8 +120,8 @@ function Client (options) {
|
|||
|
||||
this.log = options.log.child({ clazz: 'Client' }, true)
|
||||
|
||||
this.on('error', function(err) {
|
||||
self.cb(err);
|
||||
this.on('error', function (err) {
|
||||
self.cb(err)
|
||||
})
|
||||
|
||||
this.timeout = parseInt((options.timeout || 0), 10)
|
||||
|
@ -176,7 +176,7 @@ module.exports = Client
|
|||
* Default handler for error callbacks when
|
||||
* one isn't set in the instance
|
||||
*/
|
||||
Client.prototype.cb = function(err, ret) {
|
||||
Client.prototype.cb = function (err, ret) {
|
||||
if (err) {
|
||||
this.log.error('Caught exception:', err)
|
||||
} else {
|
||||
|
@ -299,7 +299,7 @@ Client.prototype.bind = function bind (name,
|
|||
})
|
||||
|
||||
var self = this
|
||||
this.cb = function(err, ret) {
|
||||
this.cb = function (err, ret) {
|
||||
delete self.cb
|
||||
callback(err, ret)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue