From 1293046bab7de7405c9ae224405235f4a0cda8aa Mon Sep 17 00:00:00 2001 From: ivanB1975 Date: Thu, 29 Oct 2015 17:03:58 +0100 Subject: [PATCH] changed style --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index a86642cd83..5bbccf0bf9 100644 --- a/index.js +++ b/index.js @@ -380,15 +380,15 @@ RedisClient.prototype.on_ready = function () { RedisClient.prototype.on_info_cmd = function (err, res) { if (err) { - /* ignore if the command info is not existing */ - if (err.message === "ERR unknown command 'info'"){ - this.server_info = {}; - this.on_ready(); - return; + /* istanbul ignore if: the command info is not existing on some servers for security reasons */ + if (err.message === "ERR unknown command 'info'") { + this.server_info = {}; + this.on_ready(); + return; } else { - err.message = 'Ready check failed: ' + err.message; - this.emit('error', err); - return; + err.message = 'Ready check failed: ' + err.message; + this.emit('error', err); + return; } }