Simplify return value logic.
This commit is contained in:
parent
3c52bcf9ab
commit
f260247422
|
@ -45,11 +45,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
|
|||
ExternalCommand copyCmd;
|
||||
connect(©Cmd, &ExternalCommand::progress, this, &Job::progress, Qt::QueuedConnection);
|
||||
connect(©Cmd, &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)
|
||||
|
|
Loading…
Reference in New Issue