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:
Rusty Russell 2018-07-16 11:49:08 +09:30 committed by Christian Decker
parent ab28972aee
commit 6758062a56
1 changed files with 1 additions and 1 deletions

View File

@ -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]);'