From a83befa0d111a0ba6fac52d763e93c76a2ef94d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Dec 2025 12:52:30 +0100 Subject: all: use any instead of interface{} Any is the preferred over interface{} now in Go. --- syz-cluster/pkg/controller/api.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'syz-cluster/pkg/controller/api.go') diff --git a/syz-cluster/pkg/controller/api.go b/syz-cluster/pkg/controller/api.go index 7520a05f9..6aad3ff42 100644 --- a/syz-cluster/pkg/controller/api.go +++ b/syz-cluster/pkg/controller/api.go @@ -78,7 +78,7 @@ func (c APIServer) triageResult(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) return } - api.ReplyJSON[interface{}](w, nil) + api.ReplyJSON[any](w, nil) } func (c APIServer) getSeries(w http.ResponseWriter, r *http.Request) { @@ -118,7 +118,7 @@ func (c APIServer) uploadTest(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) return } - api.ReplyJSON[interface{}](w, nil) + api.ReplyJSON[any](w, nil) } func (c APIServer) uploadTestArtifact(w http.ResponseWriter, r *http.Request) { @@ -148,7 +148,7 @@ func (c APIServer) uploadTestArtifact(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) return } - api.ReplyJSON[interface{}](w, nil) + api.ReplyJSON[any](w, nil) } func (c APIServer) uploadFinding(w http.ResponseWriter, r *http.Request) { @@ -162,7 +162,7 @@ func (c APIServer) uploadFinding(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) return } - api.ReplyJSON[interface{}](w, nil) + api.ReplyJSON[any](w, nil) } func (c APIServer) getLastBuild(w http.ResponseWriter, r *http.Request) { @@ -224,7 +224,7 @@ func (c APIServer) uploadBaseFinding(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) return } - api.ReplyJSON[interface{}](w, nil) + api.ReplyJSON[any](w, nil) } func (c APIServer) baseFindingStatus(w http.ResponseWriter, r *http.Request) { -- cgit mrf-deployment