fix(javascript): remove debug print statement in dependency parser (#4412)

Removes an accidental `fmt.Println("error", err)` that was left in
the javascript dependency parser. This causes noisy output to stdout
when parsing npm package-lock.json files that contain dependency
specifiers that aren't valid PURLs.

Signed-off-by: Chris Greeno <chris@fresha.com>
This commit is contained in:
Chris Greeno 2025-12-10 18:42:09 +00:00 committed by GitHub
parent 7fdb08c0b6
commit 568b7601bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,8 +27,6 @@ func packageLockDependencySpecifier(p pkg.Package) dependency.Specification {
// if the package url is valid, include the name from the package url since this is likely an alias // if the package url is valid, include the name from the package url since this is likely an alias
var fullName = fmt.Sprintf("%s/%s", purl.Namespace, purl.Name) var fullName = fmt.Sprintf("%s/%s", purl.Namespace, purl.Name)
requires = append(requires, fullName) requires = append(requires, fullName)
} else {
fmt.Println("error", err)
} }
requires = append(requires, name) requires = append(requires, name)