Skip to content

Commit

Permalink
refact: Remove none check from all_subworkflows
Browse files Browse the repository at this point in the history
Co-authored-by: Matthieu Muffato <[email protected]>
  • Loading branch information
jvfe and muffato authored Dec 2, 2024
1 parent 025d92e commit 334839f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 334839f

Please sign in to comment.