forked from TrueCloudLab/neoneo-go
rpcbinding: improve indentation for internal array code
This commit is contained in:
parent
0214628127
commit
8e0be6e7a5
2 changed files with 59 additions and 59 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue