rpcbinding: improve indentation for internal array code

This commit is contained in:
Roman Khimov 2022-12-01 21:59:28 +03:00
parent 0214628127
commit 8e0be6e7a5
2 changed files with 59 additions and 59 deletions

View file

@ -456,7 +456,7 @@ func etTypeConverter(et binding.ExtendedType, v string) string {
} }
res := make(` + at + `, len(arr)) res := make(` + at + `, len(arr))
for i := range res { for i := range res {
res[i], err = ` + etTypeConverter(*et.Value, "arr[i]") + ` res[i], err = ` + strings.ReplaceAll(etTypeConverter(*et.Value, "arr[i]"), "\n", "\n\t\t") + `
if err != nil { if err != nil {
return nil, err return nil, err
} }