From 9c311d0bf00015a0bd6b64d9aec041463311b91e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 24 Feb 2019 15:57:25 +0000 Subject: [PATCH] Remove unnecessary continue --- actioner/scheduler/todoist_assigned_issues.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/actioner/scheduler/todoist_assigned_issues.py b/actioner/scheduler/todoist_assigned_issues.py index 9d1cb4e..68226e1 100644 --- a/actioner/scheduler/todoist_assigned_issues.py +++ b/actioner/scheduler/todoist_assigned_issues.py @@ -43,7 +43,6 @@ def todoist_assigned_issues(): if existing_task_id and not me_assigned: logger.info("Deleting task for '{}'".format(issue.title)) todoist.items.delete([existing_task_id]) - continue elif ( issue.state == "closed" @@ -52,9 +51,8 @@ def todoist_assigned_issues(): ): logger.info("Completing task for '{}'".format(issue.title)) todoist.items.complete([existing_task_id]) - continue - if issue.state == "open": + elif issue.state == "open": if existing_task_id is None: logger.info("Creating task for '{}'".format(issue.title)) existing_task_id = todoist.items.add(