From 9e1e8902e259fde07ad6edb0d4d46d265ff2c00d Mon Sep 17 00:00:00 2001 From: immanuwell Date: Fri, 5 Dec 2025 14:08:29 +0400 Subject: [PATCH] refactor: just remove 3 duplicated lines in 1 .py file --- src/dstack/api/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/dstack/api/utils.py b/src/dstack/api/utils.py index 303e719825..66bec859fb 100644 --- a/src/dstack/api/utils.py +++ b/src/dstack/api/utils.py @@ -32,10 +32,6 @@ def load_profile(repo_dir: PathLike, profile_name: Optional[str]) -> Profile: if repo_profile is not None: return repo_profile - repo_profiles_path = Path(repo_dir) / ".dstack/profiles.yml" - if not repo_profiles_path.exists(): - repo_profiles_path = repo_profiles_path.with_suffix(".yaml") - dstack_dir = get_dstack_dir() global_profiles_path = dstack_dir / "profiles.yml" if not global_profiles_path.exists():