Skip to content

Commit

Permalink
fix: remove previous dead code
Browse files Browse the repository at this point in the history
in #611, it fix the variable typo in header object initialization process, which was dead code, enables the potential bug.
This fix remove the previous dead code.
  • Loading branch information
miurahr committed Sep 26, 2024
1 parent aef0afc commit 05edcc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py7zr/py7zr.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,8 @@ def _real_get_contents(self, password) -> None:
header = Header.retrieve(self.fp, buffer, self.afterheader, password)
if header is None:
return
header._initialized = True
self.header = header
header.size += 32 + self.sig_header.nextheadersize
self.header = header
buffer.close()
self.files = ArchiveFileList()
if getattr(self.header, "files_info", None) is None:
Expand Down

0 comments on commit 05edcc2

Please sign in to comment.