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
|
||||
for i, p := range states {
|
||||
if strings.ToLower(i) == strings.ToLower(state) {
|
||||
if strings.EqualFold(i, state) {
|
||||
s = p
|
||||
state = i
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user