Skip to content

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Oct 2, 2024
1 parent 7f0931d commit 993c6e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions v3/src/components/case-card/case-card-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ export const CaseCardModel = TileContentModel
const selectedCases = self.data?.selection

function findCommonCases(lineages: (readonly string[])[]) {
if (lineages.length === 0) return [];
let commonValues = lineages[0];
if (lineages.length === 0) return []
let commonValues = lineages[0]
for (let i = 1; i < lineages.length; i++) {
commonValues = commonValues.filter(value => lineages[i].includes(value));
commonValues = commonValues.filter(value => lineages[i].includes(value))
if (commonValues.length === 0) {
return [];
return []

Check warning on line 141 in v3/src/components/case-card/case-card-model.ts

View check run for this annotation

Codecov / codecov/patch

v3/src/components/case-card/case-card-model.ts#L141

Added line #L141 was not covered by tests
}
}
return commonValues;
return commonValues
}

if (selectedCases) {
Expand Down

0 comments on commit 993c6e7

Please sign in to comment.