mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
wire-gen: simplify if statement
This commit is contained in:
parent
88786b8f7a
commit
f2ecf8e9c3
1 changed files with 2 additions and 2 deletions
|
@ -1252,9 +1252,9 @@ for line in fileinput.input(options.files):
|
|||
if parts == ['']:
|
||||
continue
|
||||
|
||||
is_tlv_msg = len(parts) == 3
|
||||
if len(parts) == 1 or len(parts) == 2 or is_tlv_msg:
|
||||
if len(parts) in [1, 2, 3]:
|
||||
# eg: commit_sig,132,(_tlv)
|
||||
is_tlv_msg = len(parts) == 3
|
||||
if len(parts) == 1: # this is a subtype, it has no type number.
|
||||
subtypes.append(Subtype(parts[0], comments))
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue