We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6945f1b commit a964529Copy full SHA for a964529
model/src/main/kotlin/ScanSummary.kt
@@ -120,12 +120,9 @@ data class ScanSummary(
120
121
fun TextLocation.matchesPath() = this.path.startsWith("$path/") || this.path in applicableLicenseFiles
122
123
- val licenseFindings = licenseFindings.filterTo(mutableSetOf()) { it.location.matchesPath() }
124
- val copyrightFindings = copyrightFindings.filterTo(mutableSetOf()) { it.location.matchesPath() }
125
-
126
return copy(
127
- licenseFindings = licenseFindings,
128
- copyrightFindings = copyrightFindings
+ licenseFindings = licenseFindings.filterTo(mutableSetOf()) { it.location.matchesPath() },
+ copyrightFindings = copyrightFindings.filterTo(mutableSetOf()) { it.location.matchesPath() }
129
)
130
}
131
0 commit comments