diff --git a/nf_core/components/update.py b/nf_core/components/update.py index beefd5f9d..1a1303bb9 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -893,8 +893,8 @@ def get_components_to_update(self, component): if subworkflow in details: git_remote = remote_url break - if subworkflow != self.component_type: - subworkflows_to_update.append({"name": subworkflow, "git_remote": git_remote}) + if subworkflow != self.component_type: + subworkflows_to_update.append({"name": subworkflow, "git_remote": git_remote}) elif self.component_type == "subworkflows": for repo, repo_content in mods_json["repos"].items():