Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman committed Oct 29, 2021
1 parent 6a6a728 commit a26e9e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion internal/anchore/import_package_sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type packageSBOMImportAPI interface {
ImportImagePackages(context.Context, string, external.ImagePackageManifest) (external.ImageImportContentResponse, *http.Response, error)
}

func packageSbomModel(srcMetadata source.Metadata, catalog *pkg.Catalog, d *distro.Distro, scope source.Scope) (*external.ImagePackageManifest, error) {
func packageSbomModel(srcMetadata source.Metadata, catalog *pkg.Catalog, d *distro.Distro, _ source.Scope) (*external.ImagePackageManifest, error) {
var buf bytes.Buffer

// TODO: once the top-level API is refactored and SBOMs are the unit of work, then this function will be passed an SBOM and there would be no more need to create an SBOM object here.
Expand Down
1 change: 0 additions & 1 deletion internal/formats/cyclonedx12xml/to_format_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func toBomDescriptor(name, version string, srcMetadata source.Metadata) *model.B
}

func toBomDescriptorComponent(srcMetadata source.Metadata) *model.BomDescriptorComponent {

switch srcMetadata.Scheme {
case source.ImageScheme:
return &model.BomDescriptorComponent{
Expand Down

0 comments on commit a26e9e4

Please sign in to comment.