forked from clan/clan-core
delete unecessary f.truncate
This commit is contained in:
parent
ef827af89c
commit
69d08241e9
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user