1
0
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:
ivanB1975
2015-10-29 17:03:58 +01:00
committed by Ruben Bridgewater
parent b3407ff8c7
commit 1293046bab

View File

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