Break here, continue there

Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
Mikolaj Pawlikowski
2021-03-19 13:46:37 +00:00
parent d0e2e25ad2
commit 948b67a09b

View File

@@ -92,6 +92,7 @@ func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
// on error, there might be no response from the node
if resp.Response == nil {
output.OK = false
continue
}
// if we get a response, let's check we get the expected nodes
observedNodes := []string{}
@@ -105,6 +106,7 @@ func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
for i, val := range observedNodes {
if val != expectedNodes[i] {
output.OK = false
break
}
}
}