Lint fixes

This commit is contained in:
Thomas P 2019-10-11 22:54:53 +02:00
parent ce243d5318
commit bc61f67b12
No known key found for this signature in database
GPG Key ID: 722E1405F9F15F5E
1 changed files with 4 additions and 4 deletions

View File

@ -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)
}