Skip to content

Commit

Permalink
Enforce ruff/refurb rule FURB110
Browse files Browse the repository at this point in the history
FURB110 Replace ternary `if` expression with `or` operator
  • Loading branch information
DimitriPapadopoulos committed Jun 28, 2024
1 parent 9fa33a1 commit c6d0727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _normalize_requires(self):
def _finalize_license_files(self) -> None:
"""Compute names of all license files which should be included."""
license_files: list[str] | None = self.metadata.license_files
patterns: list[str] = license_files if license_files else []
patterns: list[str] = license_files or []

license_file: str | None = self.metadata.license_file
if license_file and license_file not in patterns:
Expand Down

0 comments on commit c6d0727

Please sign in to comment.