Skip to content

Commit

Permalink
API Security results update
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx committed Aug 4, 2023
1 parent 83687f5 commit ab1653f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/wrappers/results-summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,6 @@ func (r *ResultSummary) getRiskFromAPISecurity(origin string) *riskDistribution
return nil
}

func (r *ResultSummary) HasAPISecurityDocumentation() bool {
riskAPIDocumentation := r.getRiskFromAPISecurity("documentation")
return riskAPIDocumentation != nil
}

func (r *ResultSummary) GetAPISecurityDocumentationTotal() int {
riskAPIDocumentation := r.getRiskFromAPISecurity("documentation")
if riskAPIDocumentation != nil {
return riskAPIDocumentation.Total
}
return -1
}

func (r *ResultSummary) HasPolicies() bool {
return r.Policies != nil && len(r.Policies.Polices) > 0
}
Expand Down

0 comments on commit ab1653f

Please sign in to comment.