Skip to content

Commit

Permalink
Don't re-read lockfile after writing it
Browse files Browse the repository at this point in the history
It's slow, and anyway what is this MR even for if we still read the
lockfile with tomlkit?!
  • Loading branch information
dimbleby committed Nov 2, 2022
1 parent 03cb0b4 commit 5d5c024
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/poetry/packages/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ def _write_lock_data(self, data: TOMLDocument) -> None:
lockfile = TOMLFile(self.lock)
lockfile.write(data)

# Checking lock file data consistency
if data != lockfile.read():
raise RuntimeError("Inconsistent lock file data.")

self._lock_data = None

def _get_content_hash(self) -> str:
Expand Down

0 comments on commit 5d5c024

Please sign in to comment.