Skip to content

Commit

Permalink
fix: change error type to any
Browse files Browse the repository at this point in the history
  • Loading branch information
amircybersec committed Oct 26, 2023
1 parent b8f24eb commit 1b3eadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/reporter/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func Report(r Record) error {
}
}

func sendReport(record interface{}, collectorURL string) error {
func sendReport(record any, collectorURL string) error {
jsonData, err := json.Marshal(record)
if err != nil {
log.Printf("Error encoding JSON: %s\n", err)
Expand Down

0 comments on commit 1b3eadd

Please sign in to comment.