File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ export async function getInvalidLicenseChanges(
41
41
// Takes the changes from the groupedChanges object and filters out the ones that are part of the exclusions list
42
42
// It does by creating a new PackageURL object from the change and comparing it to the exclusions list
43
43
groupedChanges . licensed = groupedChanges . licensed . filter ( change => {
44
+ if ( change . package_url . length === 0 ) {
45
+ return true
46
+ }
47
+
44
48
const changeAsPackageURL = PackageURL . fromString ( change . package_url )
45
49
46
50
// We want to find if the licenseExclussion list contains the PackageURL of the Change
@@ -56,8 +60,9 @@ export async function getInvalidLicenseChanges(
56
60
) !== - 1
57
61
) {
58
62
return false
63
+ } else {
64
+ return true
59
65
}
60
- return true
61
66
} )
62
67
const licensedChanges : Changes = groupedChanges . licensed
63
68
You can’t perform that action at this time.
0 commit comments