remove status 200 check

This commit is contained in:
Felix Kunde 2021-10-08 18:23:55 +02:00
parent c48d497fe9
commit 957c2582f6
1 changed files with 0 additions and 4 deletions

View File

@ -124,10 +124,6 @@ func (p *Patroni) httpGet(url string) (string, error) {
return "", fmt.Errorf("could not read response: %v", err)
}
if response.StatusCode != http.StatusOK {
return string(bodyBytes), fmt.Errorf("patroni returned '%d'", response.StatusCode)
}
return string(bodyBytes), nil
}