staticcheck

This commit is contained in:
Aaron Bieber 2020-03-17 18:54:22 -06:00
parent 8079e5c610
commit 1b9ad7c3f7

View File

@ -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
} }