diff --git a/.golangci.yml b/.golangci.yml index 823f5d7..be44421 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,6 +8,7 @@ linters: - dupl - whitespace - wsl + - exportloopref presets: - bugs - unused @@ -15,3 +16,4 @@ linters: disable: - gosec - funlen + - scopelint diff --git a/cmd/query.go b/cmd/query.go index 864fe4f..22f8ce6 100644 --- a/cmd/query.go +++ b/cmd/query.go @@ -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 }