chore(lint): fix linting errors

This commit is contained in:
Tony Brix 2020-10-24 16:22:11 +00:00 committed by GitHub
parent 440f643259
commit 07555253ac
2 changed files with 6 additions and 3 deletions

View File

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

View File

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