chore(lint): fix linting errors
This commit is contained in:
parent
440f643259
commit
07555253ac
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue