Unable to infer complex closure

Can anyone give some guidance on this:

Try deleting line 32 and 35

@flmcl Do you still have issues with this?