add missing return in the api server

This commit is contained in:
Murat Kabilov
2017-09-11 17:44:32 +02:00
parent 90b49a24ba
commit 83f1dbe80c
+1
View File
@@ -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)