diff --git a/src/helpers/convertToGenericCoverageReport.ts b/src/helpers/convertToGenericCoverageReport.ts index 3950ccb..866a084 100644 --- a/src/helpers/convertToGenericCoverageReport.ts +++ b/src/helpers/convertToGenericCoverageReport.ts @@ -30,7 +30,6 @@ export function convertToGenericCoverageReport(data: CoverageData, dxDirectory: for (const uncoveredLine of uncoveredLines) { xml += `\t\t\n`; } - let totalCoveredLinesInXML = 0; for (const coveredLine of coveredLines) { if (coveredLine > totalLines) { @@ -38,18 +37,15 @@ export function convertToGenericCoverageReport(data: CoverageData, dxDirectory: if ( !uncoveredLines.includes(randomLineNumber) && !coveredLines.includes(randomLineNumber) && - !randomLines.includes(randomLineNumber) && - totalCoveredLinesInXML < coveredLines.length + !randomLines.includes(randomLineNumber) ) { xml += `\t\t\n`; randomLines.push(randomLineNumber); - totalCoveredLinesInXML++; break; } } } else { xml += `\t\t\n`; - totalCoveredLinesInXML++; } }