Skip to content

Commit

Permalink
streamlined return statement in uncoverage calc
Browse files Browse the repository at this point in the history
  • Loading branch information
hossenlopp committed Mar 15, 2024
1 parent ca98110 commit f4b34e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/calculation/HTMLBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,7 @@ export function calculateClauseCoverage(
);

const uncoveredClauses = allUniqueClauses.filter(c => {
if (coveredClauses.find(coveredC => c.libraryName === coveredC.libraryName && c.localId === coveredC.localId)) {
return false;
} else {
return true;
}
return !coveredClauses.find(coveredC => c.libraryName === coveredC.libraryName && c.localId === coveredC.localId);
});

return {
Expand Down

0 comments on commit f4b34e6

Please sign in to comment.