Skip to content

Commit 338b3cd

Browse files
committed
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.
1 parent 83a1be2 commit 338b3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ RedisClient.prototype.on_info_cmd = function (err, res) {
402402
// expose info key/vals to users
403403
this.server_info = obj;
404404

405-
if (!obj.loading || (obj.loading && obj.loading === "0")) {
405+
if (!obj.loading || obj.loading === "0") {
406406
if (exports.debug_mode) {
407407
console.log("Redis server ready.");
408408
}

0 commit comments

Comments
 (0)