chore: slice loop replace (#20204)

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu
2024-05-07 18:19:15 +08:00
committed by GitHub
parent d4900e7d45
commit 23e3e4744d
7 changed files with 9 additions and 27 deletions
+1 -3
View File
@@ -137,9 +137,7 @@ func newInvalidStructError(key string, err error) error {
jsonClientErr, ok := err.(*httputils.JSONClientError)
if ok {
errFmt += httputils.MsgTmplToFmt(jsonClientErr.Data.Id)
for _, f := range jsonClientErr.Data.Fields {
params = append(params, f)
}
params = append(params, jsonClientErr.Data.Fields...)
}
return newError(ERR_INVALID_VALUE, errFmt, params...)
}