Skip to content

Commit

Permalink
refact: Remove isinstance for str
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 24, 2024
1 parent c31c81b commit a74facc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ def update(self, component=None, silent=False, updated=None, check_diff_exist=Tr
self.modules_repo = ModulesRepo(remote_url, branch)
component = component["name"]

if isinstance(component, str):
self.modules_repo = ModulesRepo(self.current_remote, self.branch)

if self.current_remote == self.modules_repo.remote_url and self.sha is not None:
self.current_sha = self.sha
else:
Expand Down

0 comments on commit a74facc

Please sign in to comment.