Clean up unnecessary code

This commit is contained in:
Hoang Hong Quan
2024-09-11 04:32:29 +07:00
parent 347abb953d
commit de2f684c3f
4 changed files with 32 additions and 113 deletions

View File

@@ -56,7 +56,6 @@ class Github:
response = self.fetcher.fetch_and_parse_content(url, "json")
# Iterate over the assets in the release
for asset in response[0].get("assets"):
asset_id = asset.get("id")
download_url = asset.get("browser_download_url")
@@ -72,7 +71,6 @@ class Github:
return result
def extract_asset_name(self, name):
# Extract the base name from the asset name
name_parts = name.split("-") if "-" in name else name.split("_")
asset_name = name_parts[0].split(".")[0]