mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Airframe config parser: Move to combined elif statement
This commit is contained in:
parent
63901a2cde
commit
a0b792792f
@ -241,9 +241,9 @@ class SourceParser(object):
|
||||
for tag in tags:
|
||||
if tag == "maintainer":
|
||||
maintainer = tags[tag]
|
||||
if tag == "type":
|
||||
elif tag == "type":
|
||||
airframe_type = tags[tag]
|
||||
if tag == "name":
|
||||
elif tag == "name":
|
||||
airframe_name = tags[tag]
|
||||
elif tag not in self.valid_tags:
|
||||
sys.stderr.write("Aborting due to invalid documentation tag: '%s'\n" % tag)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user