diff --git a/named.go b/named.go index c4f017f5..dbad9fd3 100644 --- a/named.go +++ b/named.go @@ -157,10 +157,6 @@ func bindAnyArgs(names []string, arg interface{}, m *reflectx.Mapper) ([]interfa // type, given a list of names to pull out of the struct. Used by public // BindStruct interface. func bindArgs(names []string, arg interface{}, m *reflectx.Mapper) ([]interface{}, error) { - if maparg, ok := arg.(map[string]interface{}); ok { - return bindMapArgs(names, maparg) - } - arglist := make([]interface{}, 0, len(names)) // grab the indirected value of arg @@ -206,7 +202,7 @@ func bindStruct(bindType int, query string, arg interface{}, m *reflectx.Mapper) return "", []interface{}{}, err } - arglist, err := bindArgs(names, arg, m) + arglist, err := bindAnyArgs(names, arg, m) if err != nil { return "", []interface{}{}, err }