Skip to content

Commit

Permalink
Lint: fix CheckHarnessFeatures.comparison_result_lists initial condit…
Browse files Browse the repository at this point in the history
…ion checks order
  • Loading branch information
rwaldron committed Sep 8, 2017
1 parent 8a2ec34 commit c7a5d21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/lint/lib/checks/harnessfeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ def __init__(self):
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
Expand Down

0 comments on commit c7a5d21

Please sign in to comment.