From f79712af0129e67d8692ae9a28dd408f8d7a8ea3 Mon Sep 17 00:00:00 2001 From: iliou Date: Mon, 15 Jan 2024 16:26:48 +0100 Subject: [PATCH] removed unnecessary sorting Signed-off-by: iliou --- model/src/main/kotlin/LicenseFinding.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/model/src/main/kotlin/LicenseFinding.kt b/model/src/main/kotlin/LicenseFinding.kt index edd4d2e91069d..282cb69b938f2 100644 --- a/model/src/main/kotlin/LicenseFinding.kt +++ b/model/src/main/kotlin/LicenseFinding.kt @@ -53,10 +53,7 @@ data class LicenseFinding( ) { companion object { val COMPARATOR = compareBy({ it.license.toString() }, { it.location }) - .thenByDescending { - it.score; - it.matchedText - } + .thenByDescending { it.score } } constructor(license: String, location: TextLocation, score: Float? = null, matchedText: String? = null) :