Skip to content

Commit 69f8c6e

Browse files
committed
chore(model): Drop some unnecessary sorting
The callers do not make any assumption about the ordering, so the sorting is not needed. Signed-off-by: Frank Viernau <[email protected]>
1 parent c7edb85 commit 69f8c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/src/main/kotlin/AdvisorRecord.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ data class AdvisorRecord(
127127
* references. Other [Vulnerability] properties are taken from the first object which has any such property set.
128128
*/
129129
private fun Collection<Vulnerability>.mergeVulnerabilities(): List<Vulnerability> {
130-
val vulnerabilitiesById = groupByTo(sortedMapOf()) { it.id }
130+
val vulnerabilitiesById = groupBy { it.id }
131131
return vulnerabilitiesById.map { it.value.mergeReferences() }
132132
}
133133

0 commit comments

Comments
 (0)