Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 21, 2023
1 parent d4b102d commit 2a15ba8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mknodes/info/packageinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,8 @@ def license_name(self) -> str | None:
@functools.cached_property
def repository_url(self) -> str | None:
"""Return repository URL from metadata."""
return next(
(
self.urls[tag]
for tag in ["Source", "Repository", "Source Code"]
if tag in self.urls
),
None,
)
tags = ["Source", "Repository", "Source Code"]
return next((self.urls[tag] for tag in tags if tag in self.urls), None)

@functools.cached_property
def homepage(self) -> str | None:
Expand Down

0 comments on commit 2a15ba8

Please sign in to comment.