Skip to content

Commit

Permalink
refact: Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 28, 2024
1 parent 955a1da commit 8ec9bbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 8ec9bbb

Please sign in to comment.