You've already forked node-redis
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:
2
index.js
2
index.js
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user