Skip to content

Commit

Permalink
remove an unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Sep 14, 2022
1 parent 9eead27 commit fcc2651
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion pkg/fanal/artifact/sbom/sbom.go
Expand Up @@ -99,7 +99,6 @@ func (a Artifact) Inspect(_ context.Context) (types.ArtifactReference, error) {

// Keep an original report
CycloneDX: bom.CycloneDX,
SPDX: bom.SPDX,
}, nil
}

Expand Down
2 changes: 0 additions & 2 deletions pkg/fanal/types/artifact.go
Expand Up @@ -4,7 +4,6 @@ import (
"time"

v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/spdx/tools-golang/spdx"
)

type OS struct {
Expand Down Expand Up @@ -110,7 +109,6 @@ type ArtifactReference struct {

// SBOM
CycloneDX *CycloneDX
SPDX *spdx.Document2_2
}

type ImageMetadata struct {
Expand Down
1 change: 0 additions & 1 deletion pkg/scanner/scan.go
Expand Up @@ -162,7 +162,6 @@ func (s Scanner) ScanArtifact(ctx context.Context, options types.ScanOptions) (t
ImageConfig: artifactInfo.ImageMetadata.ConfigFile,
},
CycloneDX: artifactInfo.CycloneDX,
SPDX: artifactInfo.SPDX,
Results: results,
}, nil
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/types/report.go
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"

v1 "github.com/google/go-containerregistry/pkg/v1" // nolint: goimports
"github.com/spdx/tools-golang/spdx"

ftypes "github.com/aquasecurity/trivy/pkg/fanal/types"
)
Expand All @@ -19,8 +18,6 @@ type Report struct {

// SBOM
CycloneDX *ftypes.CycloneDX `json:"-"` // Just for internal usage, not exported in JSON
SPDX *spdx.Document2_2 `json:"-"` // Just for internal usage, not exported in JSON

}

// Metadata represents a metadata of artifact
Expand Down

0 comments on commit fcc2651

Please sign in to comment.