File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
model/src/main/kotlin/licenses Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ data class ResolvedLicenseInfo(
8383 * in any of the configured [LicenseFilePatterns] matched against the root path of the package (or project).
8484 */
8585 fun mainLicense (): SpdxExpression ? {
86- val matcher = PathLicenseMatcher (LicenseFilePatterns .getInstance())
86+ val licenseMatcher = PathLicenseMatcher (LicenseFilePatterns .getInstance())
8787 val licensePaths = flatMap { resolvedLicense ->
8888 resolvedLicense.locations.map { it.location.path }
8989 }
@@ -92,7 +92,7 @@ data class ResolvedLicenseInfo(
9292 resolvedLicense.locations.any {
9393 val rootPath = (it.provenance as ? RepositoryProvenance )?.vcsInfo?.path.orEmpty()
9494
95- val applicableLicensePaths = matcher .getApplicableLicenseFilesForDirectories(
95+ val applicableLicensePaths = licenseMatcher .getApplicableLicenseFilesForDirectories(
9696 licensePaths,
9797 listOf (rootPath)
9898 )
You can’t perform that action at this time.
0 commit comments