Skip to content

Commit

Permalink
Review: Only compare equal version in fingerprints
Browse files Browse the repository at this point in the history
  • Loading branch information
jckoenen committed Jan 10, 2024
1 parent 86e6ab6 commit f15c836
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -11,7 +11,10 @@ private fun <T : Any> Iterable<T?>?.noNulls(): Sequence<T> =
this?.asSequence().orEmpty().filterNotNull()

private val Result.equalIndicators: Sequence<String>
get() = partialFingerprints?.getValues(BaselineCalculation.EQUAL_INDICATOR)?.values.noNulls()
get() = partialFingerprints?.getValues(BaselineCalculation.EQUAL_INDICATOR)?.entries
.noNulls()
.map { (k, v) -> "$k:$v" }
.sortedDescending() // higher versions should have higher priority

internal class DiffState(private val options: Options) {
var new = 0

0 comments on commit f15c836

Please sign in to comment.