mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
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:
parent
7fdb08c0b6
commit
568b7601bb
@ -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
|
||||
var fullName = fmt.Sprintf("%s/%s", purl.Namespace, purl.Name)
|
||||
requires = append(requires, fullName)
|
||||
} else {
|
||||
fmt.Println("error", err)
|
||||
}
|
||||
|
||||
requires = append(requires, name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user