Skip to content

Commit

Permalink
remove a redundant call of callSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
sdghchj committed Jun 9, 2020
1 parent 83cc237 commit 39b28d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ func setField(field reflect.Value, defaultVal string) error {
if err := Set(field.Addr().Interface()); err != nil {
return err
}
callSetter(field.Addr().Interface())
case reflect.Slice:
for j := 0; j < field.Len(); j++ {
if err := setField(field.Index(j), defaultVal); err != nil {
Expand Down

0 comments on commit 39b28d3

Please sign in to comment.