Skip to content

Commit

Permalink
bug fixed in read_file (#12)
Browse files Browse the repository at this point in the history
team review complete.
  • Loading branch information
pigfrown authored Feb 1, 2021
1 parent 6a8c71b commit a4e1542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uplink_python/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def read_file(self, file_handle, buffer_size: int = 0):
buffer_size = file_size
while file_size:
buf, bytes_read = self.read(buffer_size)
if not buf:
if buf:
file_handle.write(buf)
file_size -= bytes_read

Expand Down

0 comments on commit a4e1542

Please sign in to comment.