Skip to content

Commit

Permalink
undo is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusMerkleQC committed Nov 7, 2024
1 parent e43d78c commit 1e030f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlcompyre/results/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def in_common(self) -> list[str]:
@cached_property
def missing_left(self) -> list[str]:
"""Ordered list of names provided only by the "right" database object."""
if self._name_mapping is not None:
if self._name_mapping:
right_renamed = {
self._inverse_name_mapping.get(k, k) for k in self._set_right
}
Expand All @@ -61,7 +61,7 @@ def missing_left(self) -> list[str]:
@cached_property
def missing_right(self) -> list[str]:
"""Ordered list of names provided only by the "left" database object."""
if self._name_mapping is not None:
if self._name_mapping:
left_renamed = {self._name_mapping.get(k, k) for k in self._set_left}
return sorted(left_renamed - self._set_right)
else:
Expand Down

0 comments on commit 1e030f1

Please sign in to comment.