Skip to content

Commit

Permalink
refact: Check if content has subwfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 25, 2024
1 parent f7d3a4d commit 6982193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,10 @@ def get_components_to_update(self, component):
for subworkflow in installed_by:
if subworkflow != component:
for remote_url, content in mods_json["repos"].items():
all_subworkflows = content["subworkflows"]
for _, details in all_subworkflows.items():
git_remote = remote_url if subworkflow in details else self.current_remote
break
if (all_subworkflows := content.get("subworkflows")) is not None:
for _, details in all_subworkflows.items():
git_remote = remote_url if subworkflow in details else self.current_remote
break
if subworkflow != self.component_type:
subworkflows_to_update.append({"name": subworkflow, "git_remote": git_remote})

Expand Down

0 comments on commit 6982193

Please sign in to comment.