Skip to content

Commit

Permalink
refactor(model): Simplify filtering resolved issues
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Apr 9, 2024
1 parent 43f6201 commit 696dc50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions model/src/main/kotlin/OrtResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,7 @@ data class OrtResult(
getIssues()
.mapNotNull { (id, issues) -> issues.takeUnless { isExcluded(id) } }
.flatten()
.filter { issue ->
issue.severity >= minSeverity && getResolutions().issues.none { it.matches(issue) }
}
.filter { it.severity >= minSeverity && !isResolved(it) }

/**
* Return a list of [PackageConfiguration]s for the given [packageId] and [provenance].
Expand Down

0 comments on commit 696dc50

Please sign in to comment.