Skip to content

Commit 82e1f39

Browse files
Merge pull request #22 from Adii0906/main
Renamed the function to better reflect its purpose. in utils.py line…
2 parents 6c946b5 + a051678 commit 82e1f39

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/link_liberate/utils.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ def generate_uuid() -> str:
1414

1515
return random_code
1616

17-
1817
def make_proper_url(url: str) -> str:
19-
if url.startswith("http://") or url.startswith("https://"):
20-
return url
21-
else:
22-
return f"https://{url}"
18+
return f"https://{url}" if not url.startswith(("http://", "https://")) else url
2319

2420

2521
def check_link(link: str) -> bool:

0 commit comments

Comments
 (0)