From bc61f67b12a356943a7b54637b9eef3e5bcf476d Mon Sep 17 00:00:00 2001 From: Thomas P Date: Fri, 11 Oct 2019 22:54:53 +0200 Subject: [PATCH] Lint fixes --- lib/client/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/client.js b/lib/client/client.js index 22f756d..1fb7b38 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -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) }