Skip to content

Commit

Permalink
Remove error.
Browse files Browse the repository at this point in the history
  • Loading branch information
blkt committed Nov 10, 2024
1 parent 485c60e commit 94c2e9f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/engine/ingester/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,7 @@ func inventoryToEcosystem(inventory *extractor.Inventory) pbinternal.DepEcosyste
}

// This should be inventory.PURL()... but there isn't a convenience wrapper yet
package_url, err := inventory.Extractor.ToPURL(inventory)
if err != nil {
zerolog.Ctx(context.Background()).Warn().Err(err).Msg("error getting ecosystem from inventory")
return pbinternal.DepEcosystem_DEP_ECOSYSTEM_UNSPECIFIED
}
package_url := inventory.Extractor.ToPURL(inventory)

// Sometimes Scalibr uses the string "PyPI" instead of "pypi" when reporting the ecosystem.
switch package_url.Type {
Expand Down

0 comments on commit 94c2e9f

Please sign in to comment.