Skip to content

Commit 9d5c79e

Browse files
committed
remove dupl;icate code
1 parent 36b3bdd commit 9d5c79e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/somesy/pyproject/writer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ def save(self, path: Optional[Path] = None) -> None:
6565
"""Save the pyproject file."""
6666
path = path or self.path
6767

68-
if not path.is_file():
69-
with open(path, "w") as f:
70-
tomlkit.dump(self._data, f)
71-
return
72-
7368
with open(path, "w") as f:
7469
tomlkit.dump(self._data, f)
7570

0 commit comments

Comments
 (0)