From 40916188b70c619dea4d01b8421798325a0c7c92 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Thu, 29 Aug 2024 10:38:08 -0700 Subject: [PATCH] Remove early return --- queue_files/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/queue_files/main.py b/queue_files/main.py index 5b16265..78cf93f 100644 --- a/queue_files/main.py +++ b/queue_files/main.py @@ -32,10 +32,6 @@ def run(event, context): dbx = dropbox.Dropbox(token) dropbox_result = dbx.files_list_folder_continue(cursor=old_cursor) - if not dropbox_result.entries: - print("No new files found") - return - # Immediately write the new cursor to the database so further requests use # it and cut down on duplicated work print("New cursor: ", dropbox_result.cursor)