From a4e15429ea61c3a6322588e47d24b6b704809e40 Mon Sep 17 00:00:00 2001 From: pigfrown Date: Mon, 1 Feb 2021 12:17:08 +0000 Subject: [PATCH] bug fixed in read_file (#12) team review complete. --- uplink_python/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uplink_python/download.py b/uplink_python/download.py index 2cf5220..7e12650 100644 --- a/uplink_python/download.py +++ b/uplink_python/download.py @@ -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