Skip to content

Commit

Permalink
rm search by cpe version info
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Nov 27, 2024
1 parent eda06cf commit 11ee4ea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions grype/db/v6/affected_package_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,6 @@ func (s *affectedPackageStore) handlePackageCPE(query *gorm.DB, c cpe.Attributes
query = query.Where("cpes.product = ?", c.Product)
}

if c.Version != cpe.Any {
query = query.Where("cpes.version = ?", c.Version)
}

if c.Update != cpe.Any {
query = query.Where("cpes.update = ?", c.Update)
}

if c.Edition != cpe.Any {
query = query.Where("cpes.edition = ?", c.Edition)
}
Expand Down

0 comments on commit 11ee4ea

Please sign in to comment.