Skip to content

Commit 467b492

Browse files
committed
refactor(config): use add_path instead of directly assigning _path
1 parent 5ef5f63 commit 467b492

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commitizen/config/ini_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, *, data: str, path: str):
2020
super(IniConfig, self).__init__()
2121
self.is_empty_config = False
2222
self._parse_setting(data)
23-
self._path = path
23+
self.add_path(path)
2424

2525
def set_key(self, key, value):
2626
"""Set or update a key in the conf.

commitizen/config/toml_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, *, data: str, path: str):
88
super(TomlConfig, self).__init__()
99
self.is_empty_config = False
1010
self._parse_setting(data)
11-
self._path = path
11+
self.add_path(path)
1212

1313
def set_key(self, key, value):
1414
"""Set or update a key in the conf.

0 commit comments

Comments
 (0)