Skip to content

Commit adee239

Browse files
author
Ruben Bridgewater
committed
Fix istanbul statement
1 parent 2744fe8 commit adee239

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ RedisClient.prototype.return_reply = function (reply) {
617617
this.emit("error", new Error("subscriptions are active but got an invalid reply: " + reply));
618618
return;
619619
}
620-
} else if (this.monitoring) {
620+
}
621+
/* istanbul ignore else: this is a safety check that we should not be able to trigger */
622+
else if (this.monitoring) {
621623
if (Buffer.isBuffer(reply)) {
622624
reply = reply.toString();
623625
}
@@ -629,7 +631,6 @@ RedisClient.prototype.return_reply = function (reply) {
629631
return elem.replace(/\\"/g, '"');
630632
});
631633
this.emit("monitor", timestamp, args);
632-
/* istanbul ignore else: this is a safety check that we should not be able to trigger */
633634
} else {
634635
var err = new Error("node_redis command queue state error. If you can reproduce this, please report it.");
635636
err.command_obj = command_obj;

0 commit comments

Comments
 (0)