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: mark private variables as such and remove obsolete ones
This commit is contained in:
@@ -6,8 +6,8 @@ const utils = require('./utils')
|
||||
|
||||
function offlineCommand (client, command) {
|
||||
const commandName = command.command.toUpperCase()
|
||||
if (client.closing || !client.enableOfflineQueue) {
|
||||
const msg = client.closing === true
|
||||
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.'
|
||||
|
Reference in New Issue
Block a user