From 8ec9bbb7764b92c9cab405bc0a6a24ed12705c54 Mon Sep 17 00:00:00 2001 From: jvfe Date: Mon, 28 Oct 2024 14:41:18 -0300 Subject: [PATCH] refact: Simplify check --- nf_core/components/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nf_core/components/update.py b/nf_core/components/update.py index 0085654ea..e749f119e 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -104,12 +104,12 @@ def update(self, component=None, silent=False, updated=None, check_diff_exist=Tr self.modules_repo = ModulesRepo(remote_url, branch) component = component["name"] - if self.original_remote != self.modules_repo.remote_url and self.sha is None: - self.current_sha = None - if self.current_remote is None: self.current_remote = self.modules_repo.remote_url + if self.original_remote != self.current_remote: + self.current_sha = None + self.component = component if updated is None: updated = []