fix compilation error
This commit is contained in:
parent
5c41f0460c
commit
a8a6df0553
3
msg.go
3
msg.go
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user