enforce more linters

This commit is contained in:
A.Unger
2020-05-24 22:06:19 +02:00
parent f508451824
commit 38049e596e
2 changed files with 12 additions and 4 deletions

View File

@@ -18,7 +18,15 @@ linters:
- scopelint
- maligned
- misspell
# - gocritic
- gocritic
- prealloc
#- gosec
- gosec
- rowserrcheck
- goconst
- gocyclo
- maligned
- unparam
- goprintffuncname
- nestif
- nolintlint
# - gomnd

View File

@@ -34,7 +34,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")