Skip to content

Commit 1293046

Browse files
ivanB1975Ruben Bridgewater
authored andcommitted
changed style
1 parent b3407ff commit 1293046

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,15 @@ RedisClient.prototype.on_ready = function () {
380380

381381
RedisClient.prototype.on_info_cmd = function (err, res) {
382382
if (err) {
383-
/* ignore if the command info is not existing */
384-
if (err.message === "ERR unknown command 'info'"){
385-
this.server_info = {};
386-
this.on_ready();
387-
return;
383+
/* istanbul ignore if: the command info is not existing on some servers for security reasons */
384+
if (err.message === "ERR unknown command 'info'") {
385+
this.server_info = {};
386+
this.on_ready();
387+
return;
388388
} else {
389-
err.message = 'Ready check failed: ' + err.message;
390-
this.emit('error', err);
391-
return;
389+
err.message = 'Ready check failed: ' + err.message;
390+
this.emit('error', err);
391+
return;
392392
}
393393
}
394394

0 commit comments

Comments
 (0)