From 334839f70032bf03b0f14cd157c238e656575280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Cavalcante?= Date: Mon, 2 Dec 2024 13:59:55 -0300 Subject: [PATCH] refact: Remove none check from all_subworkflows Co-authored-by: Matthieu Muffato --- nf_core/components/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/components/update.py b/nf_core/components/update.py index b3c6dfc98..46e52b9db 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -882,7 +882,7 @@ def get_components_to_update(self, component): for subworkflow in installed_by: if subworkflow != component: for remote_url, content in mods_json["repos"].items(): - if (all_subworkflows := content.get("subworkflows")) is not None: + if all_subworkflows := content.get("subworkflows"): for _, details in all_subworkflows.items(): if subworkflow in details: git_remote = remote_url