Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed May 24, 2024
1 parent 7519982 commit b55ae66
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pkg/scan/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func (h *scanHandler) MakePlaceHolder(ctx context.Context, art *artifact.Artifac
mimeTypes := r.GetProducesMimeTypes(art.ManifestMediaType, v1.ScanTypeSbom)
if len(mimeTypes) == 0 {
return nil, errors.New("no mime types to make report placeholders")

}

Check warning on line 205 in src/pkg/scan/sbom/sbom.go

View check run for this annotation

Codecov / codecov/patch

src/pkg/scan/sbom/sbom.go#L204-L205

Added lines #L204 - L205 were not covered by tests
sbomReports, err := mgr.GetBy(h.cloneCtx(ctx), art.ID, r.UUID, mimeTypes[0], sbomMediaTypeSpdx)
if err != nil {
Expand Down

0 comments on commit b55ae66

Please sign in to comment.