Skip to content

Commit

Permalink
removed unnecessary sorting
Browse files Browse the repository at this point in the history
Signed-off-by: iliou <[email protected]>
  • Loading branch information
dimitris-iliou committed Jan 15, 2024
1 parent 3710e5b commit f79712a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions model/src/main/kotlin/LicenseFinding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ data class LicenseFinding(
) {
companion object {
val COMPARATOR = compareBy<LicenseFinding>({ it.license.toString() }, { it.location })
.thenByDescending {
it.score;
it.matchedText
}
.thenByDescending { it.score }
}

constructor(license: String, location: TextLocation, score: Float? = null, matchedText: String? = null) :
Expand Down

0 comments on commit f79712a

Please sign in to comment.