Skip to content

Commit

Permalink
Merge pull request #112 from figsoda/unused
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Nov 24, 2022
2 parents f200488 + 2d4aa23 commit da3c17a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion nix_update/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def update_version(
raise UpdateError(
"Could not find a url in the derivations src attribute"
)
version
if preference != VersionPreference.BRANCH:
branch = None
elif version == "branch":
Expand Down
2 changes: 1 addition & 1 deletion nix_update/version/rubygems.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def fetch_rubygem_versions(url: ParseResult) -> List[Version]:
return []
parts = url.path.split("/")
gem = parts[-1]
gem_name, rest = gem.rsplit("-")
gem_name, _ = gem.rsplit("-")
versions_url = f"https://rubygems.org/api/v1/versions/{gem_name}.json"
info(f"fetch {versions_url}")
resp = urllib.request.urlopen(versions_url)
Expand Down

0 comments on commit da3c17a

Please sign in to comment.