Skip to content

Commit

Permalink
refact: Use dict only with get_comps out
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 25, 2024
1 parent a74facc commit 7ebc6dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,11 @@ def manage_changes_in_linked_components(self, component, modules_to_update, subw
included_modules, included_subworkflows = get_components_to_install(subworkflow_directory)
# If a module/subworkflow has been removed from the subworkflow
for module in modules_to_update:
module = module["name"]
if module not in included_modules:
log.info(f"Removing module '{module}' which is not included in '{component}' anymore.")
remove_module_object = ComponentRemove("modules", self.directory)
remove_module_object.remove(module, removed_by=component)
for subworkflow in subworkflows_to_update:
subworkflow = subworkflow["name"]
if subworkflow not in included_subworkflows:
log.info(f"Removing subworkflow '{subworkflow}' which is not included in '{component}' anymore.")
remove_subworkflow_object = ComponentRemove("subworkflows", self.directory)
Expand Down

0 comments on commit 7ebc6dc

Please sign in to comment.