diskfile: remove redundant tempfile cleanup comment

Assisted-By: Codex:gpt-6
Change-Id: Idd152ff17bc2098fa451e75f162d966f7c955f90
Signed-off-by: Clay Gerrard <clay.gerrard@gmail.com>
This commit is contained in:
Clay Gerrard committed 2026-09-29 14:45:55 -05:00
1 parent 3a8cdee9b2
commit 238727818d
1 file changed
-3
-3
View File
@@ -1975,9 +1975,6 @@ class BaseDiskFileWriter(object):
if self._tmppath:
# It was a named temp file created by mkstemp()
renamer(self._tmppath, target_path)
# If rename is successful, clear self._tmppath. This is done to
# avoid unnecessary os.unlink() of tempfile later. As renamer() has
# succeeded, tempfile would no longer exist at its original path.
self._tmppath = None
else:
# It was an unnamed temp file created by open() with O_TMPFILE