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, } }