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

@@ -64,7 +64,7 @@ public:
private:
bool isDeploymentNecessary() const final;
Group deployRecipe() final;
GroupItem deployRecipe() final;
GroupItem mkdirTask();
GroupItem transferTask();
@@ -193,7 +193,7 @@ GroupItem RsyncDeployStep::transferTask()
return FileTransferTask(setupHandler, {}, errorHandler);
}
Group RsyncDeployStep::deployRecipe()
GroupItem RsyncDeployStep::deployRecipe()
{
return Group { mkdirTask(), transferTask() };
}