Skip to content

Commit

Permalink
switch to http.StatusOK instead of 200
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Jan 7, 2022
1 parent d9744eb commit 62dbd89
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion accounts/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion glauth/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion graph-explorer/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion graph/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion idp/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion ocs/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion proxy/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion settings/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion storage/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion store/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion thumbnails/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion web/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down
2 changes: 1 addition & 1 deletion webdav/pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Health(cfg *config.Config) *cli.Command {

defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
logger.Fatal().
Int("code", resp.StatusCode).
Msg("Health seems to be in bad state")
Expand Down

0 comments on commit 62dbd89

Please sign in to comment.