From 18dcec21440a5c6e96da08fcdce732bb9436c190 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 24 Mar 2017 13:33:35 +0200 Subject: [PATCH] Cleanup code --- command.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/command.go b/command.go index 2cc3b64a..0209ebde 100644 --- a/command.go +++ b/command.go @@ -149,14 +149,6 @@ func (cmd *baseCmd) setErr(e error) { cmd.err = e } -func newBaseCmd(args []interface{}) baseCmd { - if len(args) > 0 { - // Cmd name is expected to be in lower case. - args[0] = internal.ToLower(args[0].(string)) - } - return baseCmd{_args: args} -} - //------------------------------------------------------------------------------ type Cmd struct { @@ -840,9 +832,8 @@ func NewGeoLocationCmd(q *GeoRadiusQuery, args ...interface{}) *GeoLocationCmd { if q.Sort != "" { args = append(args, q.Sort) } - cmd := newBaseCmd(args) return &GeoLocationCmd{ - baseCmd: cmd, + baseCmd: baseCmd{_args: args}, q: q, } }