mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-22 09:24:37 +02:00
add missing return in the api server
This commit is contained in:
@@ -148,6 +148,7 @@ func (s *Server) clusters(w http.ResponseWriter, req *http.Request) {
|
|||||||
clusters, found := teamClusters[matches["team"]]
|
clusters, found := teamClusters[matches["team"]]
|
||||||
if !found {
|
if !found {
|
||||||
s.respond(nil, fmt.Errorf("could not find clusters for the team"), w)
|
s.respond(nil, fmt.Errorf("could not find clusters for the team"), w)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
clusterNames := make([]string, 0)
|
clusterNames := make([]string, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user