Remove double call of strings.SplitN

bot-api-6.1
Давид Мзареулян 2017-03-18 14:42:30 +03:00 committed by GitHub
parent f5c6a478a0
commit 963864785d
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ func (m *Message) CommandArguments() string {
return "" return ""
} }
return strings.SplitN(m.Text, " ", 2)[1] return split[1]
} }
// MessageEntity contains information about data in a Message. // MessageEntity contains information about data in a Message.