Skip to content

Commit

Permalink
remove unnecessary rename
Browse files Browse the repository at this point in the history
  • Loading branch information
surdouski committed Sep 21, 2024
1 parent 7c1435b commit 8aa650b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mpstore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,5 @@ def _create_store_if_not_exists(path: str):
if oserror.errno != 2:
raise oserror

temp_path = path + TEMP_EXTENSION
print(temp_path)
with open(temp_path, "wb") as temp_f:
json.dump({}, temp_f)
os.rename(temp_path, path)
with open(path, "wb") as f:
json.dump({}, f)

0 comments on commit 8aa650b

Please sign in to comment.