Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 097a7600 authored by Ken Chen's avatar Ken Chen Committed by Automerger Merge Worker
Browse files

[Code Health] Reduce nesting am: bd17a083 am: e4b3cb46

parents ca86d08c e4b3cb46
Loading
Loading
Loading
Loading
+23 −24
Original line number Original line Diff line number Diff line
@@ -1284,8 +1284,8 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query,


        if (!cache_has_pending_request_locked(cache, &key, true)) {
        if (!cache_has_pending_request_locked(cache, &key, true)) {
            return RESOLV_CACHE_NOTFOUND;
            return RESOLV_CACHE_NOTFOUND;
        }


        } else {
        LOG(INFO) << __func__ << ": Waiting for previous request";
        LOG(INFO) << __func__ << ": Waiting for previous request";
        // wait until (1) timeout OR
        // wait until (1) timeout OR
        //            (2) cv is notified AND no pending request matching the |key|
        //            (2) cv is notified AND no pending request matching the |key|
@@ -1311,7 +1311,6 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query,
            return RESOLV_CACHE_NOTFOUND;
            return RESOLV_CACHE_NOTFOUND;
        }
        }
    }
    }
    }


    now = _time_now();
    now = _time_now();