tools/generate-wire.py: remove ugly blank lines after for loops
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ab28972aee
commit
6758062a56
|
@ -390,7 +390,7 @@ class Message(object):
|
||||||
subcalls.append('\ttowire_{}_array(&p, {}, {});'
|
subcalls.append('\ttowire_{}_array(&p, {}, {});'
|
||||||
.format(basetype, f.name, num_elems))
|
.format(basetype, f.name, num_elems))
|
||||||
else:
|
else:
|
||||||
subcalls.append('\tfor (size_t i = 0; i < {}; i++)\n'
|
subcalls.append('\tfor (size_t i = 0; i < {}; i++)'
|
||||||
.format(num_elems))
|
.format(num_elems))
|
||||||
if f.fieldtype.is_assignable() or basetype in varlen_structs:
|
if f.fieldtype.is_assignable() or basetype in varlen_structs:
|
||||||
subcalls.append('\t\ttowire_{}(&p, {}[i]);'
|
subcalls.append('\t\ttowire_{}(&p, {}[i]);'
|
||||||
|
|
Loading…
Reference in New Issue