Skip to content

Commit

Permalink
Remove accidental copy and paste
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Jan 9, 2025
1 parent 1a8fd29 commit 20b4ff3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/imodels/imodels.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ func (pkg *PackageInfo) Version() string {
return pkg.Inventory.Version
}

func (pkg *PackageInfo) SetVersion() string {
// TODO(v2): SBOM special case, to be removed after PURL to ESI conversion within each extractor is complete
if pkg.purlCache != nil {
return pkg.purlCache.Version
}

return pkg.Inventory.Version
}

func (pkg *PackageInfo) Location() string {
if len(pkg.Inventory.Locations) > 0 {
return pkg.Inventory.Locations[0]
Expand Down

0 comments on commit 20b4ff3

Please sign in to comment.