1
0
forked from clan/clan-core

delete unecessary f.truncate

This commit is contained in:
Luis Hebendanz 2024-01-02 16:11:40 +01:00
parent ef827af89c
commit 69d08241e9

View File

@ -30,7 +30,6 @@ def _locked_open(filename: str | Path, mode: str = "r") -> Generator:
def write_history_file(data: Any) -> None:
with _locked_open(user_history_file(), "w+") as f:
f.write(json.dumps(data, cls=EnhancedJSONEncoder, indent=4))
f.truncate()
def read_history_file() -> list[dict]: