You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
chore - remove standard and use individual config
Standard is not as up to date and still uses a old eslint version. Instead, use the airbnb default with a couple of modifications. All required changes are included.
This commit is contained in:
@@ -4,14 +4,14 @@ const Errors = require('redis-errors')
|
||||
const debug = require('./debug')
|
||||
const utils = require('./utils')
|
||||
|
||||
function offlineCommand (client, command) {
|
||||
function offlineCommand(client, command) {
|
||||
const commandName = command.command.toUpperCase()
|
||||
if (client._closing || client._options.enableOfflineQueue === false) {
|
||||
const msg = client._closing === true
|
||||
? 'The connection is already closed.'
|
||||
: client._stream.writable === true
|
||||
? 'The connection is not yet established and the offline queue is deactivated.'
|
||||
: 'Stream not writeable.'
|
||||
? 'The connection is not yet established and the offline queue is deactivated.'
|
||||
: 'Stream not writeable.'
|
||||
const err = new Errors.AbortError(`${commandName} can't be processed. ${msg}`)
|
||||
err.code = 'NR_CLOSED'
|
||||
err.command = commandName
|
||||
|
Reference in New Issue
Block a user