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

Commit 42313f92 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix property unavailable check logic." into main

parents 57d1c459 97770cf3
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -288,11 +288,8 @@ bool VtsHalAutomotiveVehicleTargetTest::isResultOkayWithValue(

bool VtsHalAutomotiveVehicleTargetTest::isUnavailable(
        const VhalClientResult<std::unique_ptr<IHalPropValue>>& result) {
    if (result.ok()) {
        return false;
    }
    if (result.error().code() == ErrorCode::NOT_AVAILABLE_FROM_VHAL) {
        return true;
    if (!result.ok()) {
        return result.error().code() == ErrorCode::NOT_AVAILABLE_FROM_VHAL;
    }
    if (result.value() != nullptr &&
        result.value()->getStatus() == VehiclePropertyStatus::UNAVAILABLE) {