Skip to content

Commit

Permalink
avoid scala.collection.breakOut
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored Oct 6, 2024
1 parent 3d99317 commit 8f34c3c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
package de.heikoseeberger.sbtheader

import sbt.URL
import scala.collection.breakOut

object LicenseDetection {

private val spdxMapping =
License.spdxLicenses.map(l => (l.spdxIdentifier, l))(breakOut): Map[String, SpdxLicense]
private val spdxMapping: Map[String, SpdxLicense] =
License.spdxLicenses.iterator.map(l => (l.spdxIdentifier, l)).toMap

def apply(
licenses: Seq[(String, URL)],
Expand Down

0 comments on commit 8f34c3c

Please sign in to comment.