You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
changed style
This commit is contained in:
committed by
Ruben Bridgewater
parent
b3407ff8c7
commit
1293046bab
16
index.js
16
index.js
@@ -380,15 +380,15 @@ RedisClient.prototype.on_ready = function () {
|
|||||||
|
|
||||||
RedisClient.prototype.on_info_cmd = function (err, res) {
|
RedisClient.prototype.on_info_cmd = function (err, res) {
|
||||||
if (err) {
|
if (err) {
|
||||||
/* ignore if the command info is not existing */
|
/* istanbul ignore if: the command info is not existing on some servers for security reasons */
|
||||||
if (err.message === "ERR unknown command 'info'"){
|
if (err.message === "ERR unknown command 'info'") {
|
||||||
this.server_info = {};
|
this.server_info = {};
|
||||||
this.on_ready();
|
this.on_ready();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
err.message = 'Ready check failed: ' + err.message;
|
err.message = 'Ready check failed: ' + err.message;
|
||||||
this.emit('error', err);
|
this.emit('error', err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user