Simplify formatBatchTrainingString function a bit: remove always true condition/unreachable code. Refs #1432
This was SVN commit r12897.
This commit is contained in:
parent
a4a060cd86
commit
fdd2b92723
@ -184,13 +184,9 @@ function formatBatchTrainingString(buildingsCountToTrainFullBatch, fullBatchSize
|
||||
if (buildingsCountToTrainFullBatch > 1 ||
|
||||
(buildingsCountToTrainFullBatch == 1 && remainderBatch > 0))
|
||||
{
|
||||
batchDetailsString += " (";
|
||||
if (fullBatchesString != "" && remainderBatchString != "")
|
||||
batchDetailsString += fullBatchesString + " + " + remainderBatchString;
|
||||
else if (fullBatchesString != "")
|
||||
batchDetailsString += fullBatchesString;
|
||||
else
|
||||
batchDetailsString += remainderBatchString;
|
||||
batchDetailsString += " (" + fullBatchesString;
|
||||
if (remainderBatchString != "")
|
||||
batchDetailsString += " + " + remainderBatchString;
|
||||
batchDetailsString += ")";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user