Skip to content

Commit 8e24503

Browse files
codexByron
andcommitted
avoid duplicate validation in set_value
Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
1 parent c417af4 commit 8e24503

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def set_value(self, section: str, option: str, value: Union[str, bytes, int, flo
923923
value_str = self._value_to_string_safe(value)
924924
if not self.has_section(section):
925925
self.add_section(section)
926-
self.set(section, option, value_str)
926+
super().set(section, option, value_str)
927927
return self
928928

929929
@needs_values

0 commit comments

Comments
 (0)