File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
model/src/main/kotlin/licenses Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,14 @@ data class ResolvedLicenseInfo(
8888 resolvedLicense.locations.map { it.location.path }
8989 }
9090
91- val applicablePathsCache = mutableMapOf<String , Map <String , Set <String >>>()
9291 val detectedLicenses = filterTo(mutableSetOf ()) { resolvedLicense ->
9392 resolvedLicense.locations.any {
9493 val rootPath = (it.provenance as ? RepositoryProvenance )?.vcsInfo?.path.orEmpty()
9594
96- val applicableLicensePaths = applicablePathsCache.getOrPut(rootPath) {
97- matcher.getApplicableLicenseFilesForDirectories(
98- licensePaths,
99- listOf (rootPath)
100- )
101- }
95+ val applicableLicensePaths = matcher.getApplicableLicenseFilesForDirectories(
96+ licensePaths,
97+ listOf (rootPath)
98+ )
10299
103100 val applicableLicenseFiles = applicableLicensePaths[rootPath].orEmpty()
104101
You can’t perform that action at this time.
0 commit comments