fix compilation error

This commit is contained in:
shoopea 2019-08-21 14:53:36 +08:00
parent 5c41f0460c
commit a8a6df0553

3
msg.go
View File

@ -18,7 +18,8 @@ func getMsgParsingRule(m *ChatWarsMessage) (*MessageParsingRule, error) {
if i == len(msgParsingRules) { if i == len(msgParsingRules) {
return nil, errors.New("Can't find message type in rules.") return nil, errors.New("Can't find message type in rules.")
} else { } else {
return &msgParsingRules[i], nil r := msgParsingRules[i]
return r, nil
} }
} }