From 963864785d6eca2390e47049021c243854079e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=B2=D0=B8=D0=B4=20=D0=9C=D0=B7=D0=B0=D1=80?= =?UTF-8?q?=D0=B5=D1=83=D0=BB=D1=8F=D0=BD?= Date: Sat, 18 Mar 2017 14:42:30 +0300 Subject: [PATCH] Remove double call of strings.SplitN --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index e691028..70960ae 100644 --- a/types.go +++ b/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.