Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sionide21 committed Dec 28, 2009
1 parent 2c01cfb commit e6e01b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xmlrpc/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ func param(param interface{}) ParamValue {
return arrayParams(v)
case *reflect.StructValue:
return structParams(v)
case *reflect.MapValue:
// Might be a map[string]ParamValue which is treated as a struct
ty, _ := v.Type().(*reflect.MapType)
if _, ok := ty.Key().(*reflect.StringType); ok {
return mapParams(v)
}
case *reflect.MapValue:
// Might be a map[string]ParamValue which is treated as a struct
ty, _ := v.Type().(*reflect.MapType)
if _, ok := ty.Key().(*reflect.StringType); ok {
return mapParams(v)
}
case *reflect.InterfaceValue:
// If it is already a param value just return it
if ret, ok := v.Interface().(ParamValue); ok {
Expand Down

0 comments on commit e6e01b6

Please sign in to comment.