Missing err arg in insertTasks callback

This commit is contained in:
Zaid Abdulla committed 2017-04-12 11:33:09 -07:00
1 parent 0d9ca3486b
commit 7e7a2032bb
1 file changed
+1 -1
+1 -1
View File
@@ -214,7 +214,7 @@ insertTasks = (tasks, callback) ->
if tasks? and common.typeOf(tasks) isnt common.ARRAY_TYPE if tasks? and common.typeOf(tasks) isnt common.ARRAY_TYPE
tasks = [tasks] tasks = [tasks]
else if not tasks? or tasks.length == 0 else if not tasks? or tasks.length == 0
return callback(tasks) return callback(null, tasks or [])
counter = tasks.length counter = tasks.length