Skip to content

Commit e990898

Browse files
joost-jSchamper
andcommitted
Apply suggestions from code review
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
1 parent 01bc5cb commit e990898

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

acquire/outputs/tar.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def write(
129129
# Prevents "long reads" because it reads at max bufsize bytes at a time
130130
buf = fh.read(bufsize)
131131
if len(buf) < bufsize:
132-
# raise exception("unexpected end of data")
133132
# PATCH; instead of raising an exception, pad the data to the desired length
134133
buf += tarfile.NUL * (bufsize - len(buf))
135134
self.tar.fileobj.write(buf)
@@ -138,7 +137,6 @@ def write(
138137
# Prevents "long reads" because it reads at max bufsize bytes at a time
139138
buf = fh.read(remainder)
140139
if len(buf) < remainder:
141-
# raise exception("unexpected end of data")
142140
# PATCH; instead of raising an exception, pad the data to the desired length
143141
buf += tarfile.NUL * (remainder - len(buf))
144142
self.tar.fileobj.write(buf)

0 commit comments

Comments
 (0)