1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Remove redundant check

If the first operand of the disjunction (`!obj.loading`) is false, `obj.loading` is truthy.
Thus there is no need to test it again in second operand.
This commit is contained in:
jomo
2015-08-30 02:37:26 +02:00
parent 83a1be24a2
commit 338b3cd9d8

View File

@@ -402,7 +402,7 @@ RedisClient.prototype.on_info_cmd = function (err, res) {
// expose info key/vals to users
this.server_info = obj;
if (!obj.loading || (obj.loading && obj.loading === "0")) {
if (!obj.loading || obj.loading === "0") {
if (exports.debug_mode) {
console.log("Redis server ready.");
}