add missing return in the api server

This commit is contained in:
Murat Kabilov 2017-09-11 16:19:54 +02:00
parent 90b49a24ba
commit 83f1dbe80c
1 changed files with 1 additions and 0 deletions

View File

@ -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)