Is this assert for the result variable from line 35 or the one on line 44? The logic here is a bit confusing :)