forked from qt-creator/qt-creator
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:
@@ -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() };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user