diff --git a/pkg/webservice/handlers.go b/pkg/webservice/handlers.go index 2965ea2d2..da212afc8 100644 --- a/pkg/webservice/handlers.go +++ b/pkg/webservice/handlers.go @@ -83,7 +83,6 @@ func getClusterInfo(w http.ResponseWriter, r *http.Request) { lists := schedulerContext.GetPartitionMapClone() clustersInfo := getClusterDAO(lists) - if err := json.NewEncoder(w).Encode(clustersInfo); err != nil { buildJSONErrorResponse(w, err.Error(), http.StatusInternalServerError) }