Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell committed Mar 22, 2023
1 parent 9773d03 commit babee04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/output/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func GetJSONString(
}

// Process error list
errorList := []MatcherResult{}
for _, error := range errors {
errorMatch := MatcherResult{error.Error.ErrorName, error.Match}
errorList = append(errorList, errorMatch)
Expand All @@ -127,7 +126,7 @@ func GetJSONString(
}

// Construct JSON response
resp := &JsonData{
resp := &JSONData{
URL: r.Request.URL.String(),
Method: r.Request.Method,
StatusCode: r.StatusCode,
Expand Down

0 comments on commit babee04

Please sign in to comment.