Skip to content

Commit

Permalink
fix: linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 15, 2024
1 parent 6d9c3dc commit 24ce975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pkg/vulnsrc/oracle-oval/oracle-oval.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ func (vs *VulnSrc) commit(tx *bolt.Tx, ovals []OracleOVAL) error {
return xerrors.Errorf("failed to put data source: %w", err)
}

// TODO can we refactor that?
// Clean affectedPkg.Package.FixedVersion to find same packages,
// when we merge fixed versions from multiple ELSA files
fixedVersion := affectedPkg.Package.FixedVersion
affectedPkg.Package.FixedVersion = ""

Expand Down
6 changes: 0 additions & 6 deletions pkg/vulnsrc/oracle-oval/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,3 @@ type Date struct {
func (p *AffectedPackage) PlatformName() string {
return fmt.Sprintf(platformFormat, p.OSVer)
}

type vulnPkg struct {
OSVer string
PkgName string
VulnID string
}

0 comments on commit 24ce975

Please sign in to comment.