Skip to content

Commit 3a80c89

Browse files
committed
chore(model): Rename a variable for clarity
This prepares for adding another matcher variable. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent fd6fe7f commit 3a80c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/src/main/kotlin/licenses/ResolvedLicenseInfo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)