From 20ee3ffb629db07d8cea40c65ebd63d1cd793d83 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 17 Feb 2013 14:37:04 -0500 Subject: [PATCH] remove cron taskObj? workaround since we're cleaning null tasks on load --- src/app/scoring.coffee | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app/scoring.coffee b/src/app/scoring.coffee index bbd921dfca..c87b424994 100644 --- a/src/app/scoring.coffee +++ b/src/app/scoring.coffee @@ -217,11 +217,6 @@ cron = () -> # Tally each task todoTally = 0 _.each obj.tasks, (taskObj) -> - unless taskObj? - #TODO delete the object - console.error "a task had a null id during cron, this should not be happening" - return - {id, type, completed, repeat} = taskObj if type in ['todo', 'daily'] # Deduct experience for missed Daily tasks,