Skip to content

Commit

Permalink
Remove unused function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Dec 2, 2023
1 parent 108eeb1 commit cebcdd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/poetry/core/spdx/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if sys.version_info < (3, 9):
from pathlib import Path

def _get_license_file(schema_name: str) -> Path:
def _get_license_file() -> Path:
return Path(__file__).parent / "data" / "licenses.json"

else:
Expand All @@ -21,7 +21,7 @@ def _get_license_file(schema_name: str) -> Path:
if TYPE_CHECKING:
from importlib.abc import Traversable

def _get_license_file(schema_name: str) -> Traversable:
def _get_license_file() -> Traversable:
return files(__package__) / "data" / "licenses.json"


Expand All @@ -38,7 +38,7 @@ def license_by_id(identifier: str) -> License:
@functools.lru_cache
def _load_licenses() -> dict[str, License]:
licenses = {}
licenses_file = _get_license_file("licenses")
licenses_file = _get_license_file()

with licenses_file.open(encoding="utf-8") as f:
data = json.load(f)
Expand Down

0 comments on commit cebcdd3

Please sign in to comment.