Fix -Wunused-variable compiler warning

Test: presubmit
Change-Id: I63b1625decd3dcdb9f405c8825203e04810c282c
This commit is contained in:
Yi Kong 2023-12-05 18:35:33 +09:00
parent 3ecba6b927
commit b8bbc43489

View file

@ -224,7 +224,7 @@ std::unique_ptr<OptimizedFlashSuperTask> OptimizedFlashSuperTask::Initialize(
auto remove_if_callback = [&](const auto& task) -> bool {
if (auto flash_task = task->AsFlashTask()) {
return helper->WillFlash(flash_task->GetPartitionAndSlot());
} else if (auto update_super_task = task->AsUpdateSuperTask()) {
} else if (task->AsUpdateSuperTask()) {
return true;
} else if (auto reboot_task = task->AsRebootTask()) {
if (reboot_task->GetTarget() == "fastboot") {