AbstractRemoteLinuxDeployStep: Make recipe return GroupItem

There is no need for extra nested Group item in deployRecipe()
overloads, as sometimes it's just one task, like in case of
QdbStopApplicationStep or CustomCommandDeployStep.

Change-Id: I89cdb703c24198f3cbdfb17d0317e40f1929c376
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2023-07-10 09:25:59 +02:00
parent 181b5ee28b
commit 02ffee322b
9 changed files with 22 additions and 22 deletions

View File

@@ -117,7 +117,7 @@ void AbstractRemoteLinuxDeployStep::doRun()
QTC_ASSERT(!d->m_taskTree, return);
d->m_taskTree.reset(new TaskTree(runRecipe()));
d->m_taskTree.reset(new TaskTree({runRecipe()}));
const auto endHandler = [this] {
d->m_taskTree.release()->deleteLater();
handleFinished();
@@ -185,7 +185,7 @@ bool AbstractRemoteLinuxDeployStep::isDeploymentNecessary() const
return true;
}
Group AbstractRemoteLinuxDeployStep::runRecipe()
GroupItem AbstractRemoteLinuxDeployStep::runRecipe()
{
const auto onSetup = [this] {
const auto canDeploy = isDeploymentPossible();