Next: remove misleading comments on active() and self-evident on cancel()

This commit is contained in:
Jake 2026-03-04 22:07:58 -08:00
parent 94c503b4e6
commit 9313659074

View file

@ -475,7 +475,6 @@ class TaskHandler:
"""
if task_id in self.tasks:
# if the task has not been run, cancel it
deferred = self.get_deferred(task_id)
return not (deferred is not None and deferred.called)
else:
@ -495,7 +494,6 @@ class TaskHandler:
"""
if task_id in self.tasks:
# if the task has not been run, cancel it
d = self.get_deferred(task_id)
if d is not None: # it is remotely possible for a task to not have a deferred
if d.called: