Skip to content

Commit 68b9d04

Browse files
chore: fix comment
1 parent 3e03271 commit 68b9d04

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/mcpm/profile/profile_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111

1212
class ProfileConfigManager:
13-
def __init__(self, profile_path: str | None = DEFAULT_PROFILE_PATH):
14-
if profile_path is None:
15-
profile_path = DEFAULT_PROFILE_PATH
13+
def __init__(self, profile_path: str = DEFAULT_PROFILE_PATH):
1614
self.profile_path = os.path.expanduser(profile_path)
1715
self._profiles = self._load_profiles()
1816

src/mcpm/router/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, reload_server: bool = False, profile_path: str | None = None,
5555
self.resources_mapping: t.Dict[str, types.Resource] = {}
5656
self.resources_templates_mapping: t.Dict[str, types.ResourceTemplate] = {}
5757
self.aggregated_server = self._create_aggregated_server()
58-
self.profile_manager = ProfileConfigManager(profile_path=profile_path)
58+
self.profile_manager = ProfileConfigManager() if profile_path is None else ProfileConfigManager(profile_path)
5959
self.watcher: Optional[ConfigWatcher] = None
6060
if reload_server:
6161
self.watcher = ConfigWatcher(self.profile_manager.profile_path)

0 commit comments

Comments
 (0)