Merge pull request #82 from davidmz/patch-1
Remove double call of strings.SplitN
This commit is contained in:
commit
89bbb1edff
1 changed files with 1 additions and 1 deletions
2
types.go
2
types.go
|
@ -194,7 +194,7 @@ func (m *Message) CommandArguments() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
return strings.SplitN(m.Text, " ", 2)[1]
|
||||
return split[1]
|
||||
}
|
||||
|
||||
// MessageEntity contains information about data in a Message.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue