Lint: fix CheckHarnessFeatures.comparison_result_lists initial condition checks order

This commit is contained in:
Rick Waldron 2017-09-08 12:28:22 -04:00
parent 8a2ec34200
commit c7a5d21bee
1 changed files with 4 additions and 2 deletions

View File

@ -14,12 +14,14 @@ class CheckHarnessFeatures(Check):
def comparison_result_lists(self, meta):
result = {'features': set(), 'missing': set()}
if not meta or 'includes' not in meta:
return result
meta_features = meta['features'] if 'features' in meta else []
meta_includes = meta['includes']
features = []
if not meta or 'includes' not in meta:
return result
if len(meta_includes) == 0:
return result