enforce more linters
This commit is contained in:
+11
-3
@@ -18,7 +18,15 @@ linters:
|
|||||||
- scopelint
|
- scopelint
|
||||||
- maligned
|
- maligned
|
||||||
- misspell
|
- misspell
|
||||||
# - gocritic
|
- gocritic
|
||||||
- prealloc
|
- prealloc
|
||||||
#- gosec
|
- gosec
|
||||||
|
- rowserrcheck
|
||||||
|
- goconst
|
||||||
|
- gocyclo
|
||||||
|
- maligned
|
||||||
|
- unparam
|
||||||
|
- goprintffuncname
|
||||||
|
- nestif
|
||||||
|
- nolintlint
|
||||||
|
# - gomnd
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func Health(cfg *config.Config) *cli.Command {
|
|||||||
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != http.StatusOK {
|
||||||
logger.Fatal().
|
logger.Fatal().
|
||||||
Int("code", resp.StatusCode).
|
Int("code", resp.StatusCode).
|
||||||
Msg("Health seems to be in bad state")
|
Msg("Health seems to be in bad state")
|
||||||
|
|||||||
Reference in New Issue
Block a user