Skip to content

Commit d8f6c77

Browse files
committed
Timeout is never None
Signed-off-by: Matthew Kim <[email protected]>
1 parent 585bf4a commit d8f6c77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/databricks/sql/cloudfetch/downloader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ def is_file_download_successful(self) -> bool:
5151
5252
This function will block until a file download finishes or until a timeout.
5353
"""
54-
timeout = self.settings.download_timeout
55-
timeout = timeout if timeout and timeout > 0 else None
54+
timeout = self.settings.download_timeout if self.settings.download_timeout > 0 else None
5655
try:
5756
if not self.is_download_finished.wait(timeout=timeout):
5857
self.is_download_timedout = True

0 commit comments

Comments
 (0)