From 07555253acce8b3bde4a25fb95fc2cff03aec6b8 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Sat, 24 Oct 2020 16:22:11 +0000 Subject: [PATCH] chore(lint): fix linting errors --- lib/client/client.js | 6 ++++-- lib/messages/ext_request.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/client/client.js b/lib/client/client.js index daf9314..bde54f9 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -128,7 +128,8 @@ function Client (options) { if (options.reconnect) { // Fall back to defaults if options.reconnect === true var rOpts = (typeof (options.reconnect) === 'object') - ? options.reconnect : {} + ? options.reconnect + : {} this.reconnect = { initialDelay: parseInt(rOpts.initialDelay || 100, 10), maxDelay: parseInt(rOpts.maxDelay || 10000, 10), @@ -859,7 +860,8 @@ Client.prototype.connect = function connect () { if (typeof (socket.setKeepAlive) !== 'function') { socket.setKeepAlive = function setKeepAlive (enable, delay) { return socket.socket - ? socket.socket.setKeepAlive(enable, delay) : false + ? socket.socket.setKeepAlive(enable, delay) + : false } } diff --git a/lib/messages/ext_request.js b/lib/messages/ext_request.js index b719825..d937073 100644 --- a/lib/messages/ext_request.js +++ b/lib/messages/ext_request.js @@ -106,7 +106,8 @@ ExtendedRequest.prototype._json = function (j) { j.requestName = this.requestName j.requestValue = (Buffer.isBuffer(this.requestValue)) - ? this.requestValue.toString('hex') : this.requestValue + ? this.requestValue.toString('hex') + : this.requestValue return j }