Skip to content

Commit

Permalink
remove unused types JTypeMapper check & support default types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengchao.Lv1 authored and Mengchao.Lv1 committed Dec 2, 2023
1 parent d258c95 commit a390c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pixiu/pkg/client/dubbo/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (opt *paramTypesOpt) Action(target, val interface{}) error {
return errors.New("Target is not dubboTarget in target parameter")
}
// empty types for func like func()
var types []string
types := make([]string, 0)
if v, ok := val.(string); ok {
if len(v) > 0 {
types = strings.Split(v, ",")
Expand Down

0 comments on commit a390c61

Please sign in to comment.