Skip to content

Commit 300928c

Browse files
committed
remove unused attrib
1 parent 87695d3 commit 300928c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/results/results.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ type ScaScanResults struct {
185185
// Sca scan results
186186
DeprecatedXrayResults []services.ScanResponse `json:"xray_scan,omitempty"`
187187
// Sbom (potentially, with enriched components and CVE Vulnerabilities) of the target
188-
Sbom *cyclonedx.BOM `json:"sbom,omitempty"`
189-
ScanStatusCode *int `json:"status_code,omitempty"`
188+
Sbom *cyclonedx.BOM `json:"sbom,omitempty"`
190189
}
191190

192191
type JasScansResults struct {
@@ -610,7 +609,7 @@ func (sr *TargetResults) SetSbom(sbom *cyclonedx.BOM, optionalStatusCodes ...int
610609

611610
func (sr *TargetResults) EnrichedSbomScanResults(errorCode int, enrichedSbom *cyclonedx.BOM) *ScaScanResults {
612611
sr.SetSbom(enrichedSbom)
613-
sr.ScaResults.ScanStatusCode = &errorCode
612+
sr.ResultsStatus.UpdateStatus(CmdStepSca, &errorCode)
614613
return sr.ScaResults
615614
}
616615

0 commit comments

Comments
 (0)