Skip to content

Commit

Permalink
fixup! [fix] SquashFSMountSource: Avoid resource leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Oct 12, 2024
1 parent 7cb7890 commit 3ee588b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ratarmountcore/SquashFSMountSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def __init__(
) -> None:
if isinstance(fileOrPath, str):
openedFile = True
file = open(fileOrPath, 'rb')
file: IO[bytes] = open(fileOrPath, 'rb')
else:
openedFile = False
file = fileOrPath
Expand Down

0 comments on commit 3ee588b

Please sign in to comment.