Skip to content

Commit

Permalink
get or default
Browse files Browse the repository at this point in the history
  • Loading branch information
RhythmicSys committed Jan 1, 2025
1 parent a5634ce commit fd84fac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ def get_project_id(json_file):
return json_file["project_id"]

def get_dependencies(json_file):
dependencies = json_file["dependencies"]
if dependencies is None:
return []
return dependencies
return json_file.get("dependencies", [])

def should_update_pack(modrinth_json):
if modrinth_json is None:
Expand Down

0 comments on commit fd84fac

Please sign in to comment.