diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index bee47e60a..b7332eba4 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -148,6 +148,7 @@ func (s *Server) clusters(w http.ResponseWriter, req *http.Request) { clusters, found := teamClusters[matches["team"]] if !found { s.respond(nil, fmt.Errorf("could not find clusters for the team"), w) + return } clusterNames := make([]string, 0)