Skip to content

Commit

Permalink
style: return early
Browse files Browse the repository at this point in the history
  • Loading branch information
sisp committed Apr 16, 2024
1 parent 0e5350e commit 4cb75cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions copier/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def get_repo(url: str) -> str | None:

if url.endswith(GIT_POSTFIX) or url.startswith(GIT_PREFIX):
if url.startswith("git+"):
url = url[4:]
elif url.startswith("https://") and not url.endswith(GIT_POSTFIX):
url = "".join((url, GIT_POSTFIX))
return url[4:]
if url.startswith("https://") and not url.endswith(GIT_POSTFIX):
return "".join((url, GIT_POSTFIX))
return url

url_path = Path(url)
Expand Down

0 comments on commit 4cb75cd

Please sign in to comment.