From adee2396455fe4671fb8095be4147241ff5b050d Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Fri, 2 Oct 2015 20:25:49 +0200 Subject: [PATCH] Fix istanbul statement --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2f9a888..a0e17e6 100644 --- a/index.js +++ b/index.js @@ -617,7 +617,9 @@ RedisClient.prototype.return_reply = function (reply) { this.emit("error", new Error("subscriptions are active but got an invalid reply: " + reply)); return; } - } else if (this.monitoring) { + } + /* istanbul ignore else: this is a safety check that we should not be able to trigger */ + else if (this.monitoring) { if (Buffer.isBuffer(reply)) { reply = reply.toString(); } @@ -629,7 +631,6 @@ RedisClient.prototype.return_reply = function (reply) { return elem.replace(/\\"/g, '"'); }); this.emit("monitor", timestamp, args); - /* istanbul ignore else: this is a safety check that we should not be able to trigger */ } else { var err = new Error("node_redis command queue state error. If you can reproduce this, please report it."); err.command_obj = command_obj;