You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Fix istanbul statement
This commit is contained in:
5
index.js
5
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));
|
this.emit("error", new Error("subscriptions are active but got an invalid reply: " + reply));
|
||||||
return;
|
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)) {
|
if (Buffer.isBuffer(reply)) {
|
||||||
reply = reply.toString();
|
reply = reply.toString();
|
||||||
}
|
}
|
||||||
@@ -629,7 +631,6 @@ RedisClient.prototype.return_reply = function (reply) {
|
|||||||
return elem.replace(/\\"/g, '"');
|
return elem.replace(/\\"/g, '"');
|
||||||
});
|
});
|
||||||
this.emit("monitor", timestamp, args);
|
this.emit("monitor", timestamp, args);
|
||||||
/* istanbul ignore else: this is a safety check that we should not be able to trigger */
|
|
||||||
} else {
|
} else {
|
||||||
var err = new Error("node_redis command queue state error. If you can reproduce this, please report it.");
|
var err = new Error("node_redis command queue state error. If you can reproduce this, please report it.");
|
||||||
err.command_obj = command_obj;
|
err.command_obj = command_obj;
|
||||||
|
Reference in New Issue
Block a user