Skip to content

Commit 9e1e890

Browse files
committed
refactor: just remove 3 duplicated lines in 1 .py file
1 parent 7361afa commit 9e1e890

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/dstack/api/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ def load_profile(repo_dir: PathLike, profile_name: Optional[str]) -> Profile:
3232
if repo_profile is not None:
3333
return repo_profile
3434

35-
repo_profiles_path = Path(repo_dir) / ".dstack/profiles.yml"
36-
if not repo_profiles_path.exists():
37-
repo_profiles_path = repo_profiles_path.with_suffix(".yaml")
38-
3935
dstack_dir = get_dstack_dir()
4036
global_profiles_path = dstack_dir / "profiles.yml"
4137
if not global_profiles_path.exists():

0 commit comments

Comments
 (0)