maintainers-checks: Use elif to check 'dd' install method
* If a device doesn't have a valid install method, there's no point in checking if it has 'dd' as the install method, it won't match up anyways * This has no visible impact on the time of running this script, but the logic is now better Change-Id: I204903db40f02fe1ff837ed6feb8d06ace86cc92
This commit is contained in:
@@ -83,7 +83,7 @@ for codename in codenames:
|
||||
try:
|
||||
if not yml["install_method"] or "TODO" in yml["install_method"]:
|
||||
print("{} doesn't have an install method listed".format(codename))
|
||||
if "dd" in yml["install_method"]:
|
||||
elif "dd" in yml["install_method"]:
|
||||
try:
|
||||
if not yml["recovery_partition"]:
|
||||
print("{} doesn't have a recovery partition listed".format(codename))
|
||||
|
||||
Reference in New Issue
Block a user