mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
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:
committed by
Christian Decker
parent
ab28972aee
commit
6758062a56
@@ -390,7 +390,7 @@ class Message(object):
|
||||
subcalls.append('\ttowire_{}_array(&p, {}, {});'
|
||||
.format(basetype, f.name, num_elems))
|
||||
else:
|
||||
subcalls.append('\tfor (size_t i = 0; i < {}; i++)\n'
|
||||
subcalls.append('\tfor (size_t i = 0; i < {}; i++)'
|
||||
.format(num_elems))
|
||||
if f.fieldtype.is_assignable() or basetype in varlen_structs:
|
||||
subcalls.append('\t\ttowire_{}(&p, {}[i]);'
|
||||
|
||||
Reference in New Issue
Block a user