Skip to content

Commit

Permalink
initialize array (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrompflopes authored Feb 2, 2024
1 parent dd80840 commit 6b05973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/commands/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,8 +1347,8 @@ func createSarifRun(results *wrappers.ScanResultsCollection) wrappers.SarifRun {
}

func parseResults(results *wrappers.ScanResultsCollection) ([]wrappers.SarifDriverRule, []wrappers.SarifScanResult) {
var sarifRules []wrappers.SarifDriverRule
var sarifResults []wrappers.SarifScanResult
var sarifRules = make([]wrappers.SarifDriverRule, 0)
var sarifResults = make([]wrappers.SarifScanResult, 0)
if results != nil {
ruleIds := map[interface{}]bool{}
for _, result := range results.Results {
Expand Down

0 comments on commit 6b05973

Please sign in to comment.