Simplify return value logic.

This commit is contained in:
Andrius Štikonas 2018-10-21 17:50:00 +01:00
parent 3c52bcf9ab
commit f260247422
1 changed files with 1 additions and 5 deletions

View File

@ -45,11 +45,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
ExternalCommand copyCmd;
connect(&copyCmd, &ExternalCommand::progress, this, &Job::progress, Qt::QueuedConnection);
connect(&copyCmd, &ExternalCommand::reportSignal, this, &Job::updateReport, Qt::QueuedConnection);
if (copyCmd.copyBlocks(source, target)) {
return true;
}
return false;
return copyCmd.copyBlocks(source, target);
}
bool Job::rollbackCopyBlocks(Report& report, CopyTarget& origTarget, CopySource& origSource)