Cleanup code

This commit is contained in:
Vladimir Mihailenco 2017-03-24 13:33:35 +02:00
parent dc9d5006b3
commit 18dcec2144
1 changed files with 1 additions and 10 deletions

View File

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