Skip to content

Commit 4f95397

Browse files
committed
Nicer form.
1 parent 494ad14 commit 4f95397

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sqlalchemydiff/comparer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ def _compile_errors(self) -> dict:
5757
@property
5858
def is_match(self):
5959
"""Tell if comparison was a match."""
60-
for errors in self.errors.values():
61-
if errors:
62-
return False
63-
return True
60+
return not any(self.errors.values())
6461

6562
def dump_result(self, filename):
6663
"""Dump `result` dict to a file."""

0 commit comments

Comments
 (0)