Skip to content

Commit 7720bbc

Browse files
committed
chore(sync[git]): Manual fix for ruff error
src/libvcs/sync/git.py:587:13: TRY300 Consider moving this statement to an `else` block
1 parent 9b579d6 commit 7720bbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libvcs/sync/git.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,9 @@ def remote(self, name: str, **kwargs: Any) -> Optional[GitRemote]:
590590
fetch_url=remote_fetch_url,
591591
push_url=remote_push_url,
592592
)
593-
else:
594-
return None
595593
except exc.LibVCSException:
596-
return None
594+
pass
595+
return None
597596

598597
def set_remote(
599598
self,

0 commit comments

Comments
 (0)