diff --git a/src/pkg/scan/sbom/sbom.go b/src/pkg/scan/sbom/sbom.go index 6437c0fbb0ec..876d717ce535 100644 --- a/src/pkg/scan/sbom/sbom.go +++ b/src/pkg/scan/sbom/sbom.go @@ -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") - } sbomReports, err := mgr.GetBy(h.cloneCtx(ctx), art.ID, r.UUID, mimeTypes[0], sbomMediaTypeSpdx) if err != nil {