From 1b3eadd2fcdc11eac2ed107b7e6c1e9dc34a8482 Mon Sep 17 00:00:00 2001 From: amir gh Date: Thu, 26 Oct 2023 10:21:17 -0700 Subject: [PATCH] fix: change error type to any --- x/reporter/reporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/reporter/reporter.go b/x/reporter/reporter.go index abb4c285..cde5d72b 100644 --- a/x/reporter/reporter.go +++ b/x/reporter/reporter.go @@ -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)