diff --git a/fastboot/task.cpp b/fastboot/task.cpp index 25c5a6e6b..0947ff90f 100644 --- a/fastboot/task.cpp +++ b/fastboot/task.cpp @@ -224,7 +224,7 @@ std::unique_ptr 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") {