Skip to content

Commit

Permalink
ensure the sarif results are an empty array if nothing is reported
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfeidau authored and Cosmin Cojocar committed Jan 21, 2021
1 parent 41ea431 commit 327b2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func convertToSarifReport(rootPaths []string, data *reportInfo) (*sarifReport, e

var rules []*sarifRule
var locations []*sarifLocation
var results []*sarifResult
results := []*sarifResult{}

for index, issue := range data.Issues {
rules = append(rules, buildSarifRule(issue))
Expand Down

0 comments on commit 327b2a0

Please sign in to comment.