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 Aug 18, 2024
1 parent 70c75e2 commit e9bc9c4
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 @@ -363,7 +363,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 e9bc9c4

Please sign in to comment.