Skip to content

Commit

Permalink
chore(reporter): Remove a redundant toMap() call
Browse files Browse the repository at this point in the history
`eachCount()` already returns a map.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Apr 30, 2024
1 parent f6d808f commit 25515fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reporter/src/main/kotlin/StatisticsCalculator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object StatisticsCalculator {
flatMap { id ->
val resolvedLicenseInfo = licenseInfoResolver.resolveLicenseInfo(id)
transform(resolvedLicenseInfo).map { it.license.toString() }
}.groupingBy { it }.eachCount().toMap()
}.groupingBy { it }.eachCount()

val ids = ortResult.getProjectsAndPackages()

Expand Down

0 comments on commit 25515fb

Please sign in to comment.