staticcheck
This commit is contained in:
parent
8079e5c610
commit
1b9ad7c3f7
@ -61,7 +61,7 @@ func (h *Covid) RespondText(c *gomatrix.Client, ev *gomatrix.Event, user, post s
|
|||||||
|
|
||||||
var s State
|
var s State
|
||||||
for i, p := range states {
|
for i, p := range states {
|
||||||
if strings.ToLower(i) == strings.ToLower(state) {
|
if strings.EqualFold(i, state) {
|
||||||
s = p
|
s = p
|
||||||
state = i
|
state = i
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user