Revert "Merge pull request #916 from jebeaudet/spdx-support"

This reverts commit 5a5d4df8ad, reversing
changes made to 67d4f4bd7a.
This commit is contained in:
Kevin Dangoor
2025-05-05 18:43:46 -04:00
parent 5a5d4df8ad
commit a87294d992
4 changed files with 6 additions and 138 deletions
+2 -8
View File
@@ -88,20 +88,14 @@ export async function getInvalidLicenseChanges(
try {
if (allow !== undefined) {
if (spdx.isValid(license)) {
let found = false
for (const allowedLicense of allow) {
found ||= spdx.satisfies(allowedLicense, license)
}
const found = spdx.satisfiesAny(license, allow)
validityCache.set(license, found)
} else {
invalidLicenseChanges.unresolved.push(change)
}
} else if (deny !== undefined) {
if (spdx.isValid(license)) {
let found = false
for (const deniedLicense of deny) {
found ||= spdx.satisfies(deniedLicense, license)
}
const found = spdx.satisfiesAny(license, deny)
validityCache.set(license, !found)
} else {
invalidLicenseChanges.unresolved.push(change)