I got this error on the line of the second if statement, can\'t seem to find what\'s causing it.
function recallRoutineEnd(snapshot) { return functio