Skip to content

Commit

Permalink
Merge pull request #8 from NETWAYS/bug/fix_return_code
Browse files Browse the repository at this point in the history
Fix return code
  • Loading branch information
mocdaniel authored Apr 20, 2022
2 parents 13e6b6a + dc05856 commit b344608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ linters:
- dupl
- whitespace
- wsl
- exportloopref
presets:
- bugs
- unused
fast: false
disable:
- gosec
- funlen
- scopelint
2 changes: 1 addition & 1 deletion cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-
rc = check.Critical
} else if total >= cliQueryConfig.Warning {
rc = check.Warning
} else if total == 0 {
} else if total < cliQueryConfig.Warning {
rc = check.OK
}

Expand Down

0 comments on commit b344608

Please sign in to comment.