mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
chore: slice loop replace (#20204)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user