From a56894a7237306fc934498b0fe9a98233ea6f022 Mon Sep 17 00:00:00 2001 From: nathannaveen <42319948+nathannaveen@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:13:36 -0500 Subject: [PATCH] Update based on code review Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> --- pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go b/pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go index b9414ea8e0b..71c54bde822 100644 --- a/pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go +++ b/pkg/ingestor/parser/cyclonedx/parser_cyclonedx.go @@ -499,14 +499,13 @@ func (c *cyclonedxParser) findCDXPkgVersionIDs(ctx context.Context, pkgIdentifie Name: &pkgIdentifier, }) if err != nil { - return nil, fmt.Errorf("error querying for packages1: %w", err) + return nil, fmt.Errorf("error querying for packages: %w", err) } pkgVersionsMap := map[string]string{} var pkgVersions []string for _, depPkgVersion := range pkgResponse.Packages[0].Namespaces[0].Names[0].Versions { pkgVersions = append(pkgVersions, depPkgVersion.Version) - pkgVersionsMap[depPkgVersion.Version] = depPkgVersion.Id pkgVersionsMap[depPkgVersion.Version] = guacCDXPkgPurl(typeGUAC, depPkgVersion.Version, "", false) }