Skip to content

Commit

Permalink
fix: use only yield to return values
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Mar 4, 2019
1 parent b1df589 commit af7d8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_nitpick/files/pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def check_rules(self) -> YieldFlake8Error:
actual = flatten(self.config.pyproject_dict)
expected = flatten(self.file_dict)
if expected.items() <= actual.items():
return []
return

missing_dict = unflatten({k: v for k, v in expected.items() if k not in actual})
if missing_dict:
Expand Down

0 comments on commit af7d8d2

Please sign in to comment.