Skip to content

Commit 12ef13f

Browse files
author
wafuwafu13
committed
fix ineffassign
1 parent 7bb8cf1 commit 12ef13f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ linters:
33
# TODO remove this rule.
44
disable:
55
- errcheck
6-
- ineffassign
76
- staticcheck
87
linters-settings:
98
govet:

check-elasticsearch/lib/check_elasticsearch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func run(args []string) *checkers.Checker {
5757
var health healthStat
5858
dec.Decode(&health)
5959

60-
checkSt := checkers.UNKNOWN
60+
var checkSt checkers.Status
6161
switch health.Status {
6262
case "green":
6363
checkSt = checkers.OK

0 commit comments

Comments
 (0)