Skip to content

Commit d489f19

Browse files
author
Andrei Neagu
committed
refactor
1 parent b330d8b commit d489f19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/service-integration/src/service_integration/cli/_compose_spec.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def _run_git(*args) -> str:
3636

3737

3838
def _strip_credentials(url: str) -> str:
39-
yarl_url = URL(url)
40-
if yarl_url.is_absolute():
39+
if (yarl_url := URL(url)) and yarl_url.is_absolute():
4140
stripped_url = URL(url).with_user(None).with_password(None)
4241
return f"{stripped_url}"
4342
return url

0 commit comments

Comments
 (0)