From 39b28d317a24c2c9a59e53a96944a0272c6eeb81 Mon Sep 17 00:00:00 2001 From: chengjin Date: Tue, 9 Jun 2020 10:42:53 +0800 Subject: [PATCH] remove a redundant call of callSetter --- defaults.go | 1 - 1 file changed, 1 deletion(-) diff --git a/defaults.go b/defaults.go index 8fba889..bdb0e9a 100644 --- a/defaults.go +++ b/defaults.go @@ -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 {