Skip to content

Commit

Permalink
simplified condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianegli committed Sep 15, 2022
1 parent d136124 commit a7bc6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def _fix_module_version(self, current_version, latest_version, singularity_tag,
build_type = _container_type(l)
if build_type == "bioconda":
new_lines.append(re.sub(rf"{current_version}", f"{latest_version}", line))
elif build_type == "singularity" or build_type == "docker":
elif build_type in ("singularity", "docker"):
# Check that the new url is valid
new_url = re.search(
"(?:['\"])(.+)(?:['\"])", re.sub(rf"{singularity_tag}", f"{latest_version}--{build}", line)
Expand Down

0 comments on commit a7bc6de

Please sign in to comment.