remove bad if statement. if a function is not provided, the code would hang. with this change, an error will be thrown
remove bad if statement. if a function is not provided, the code
would hang. with this change, an error will be thrown

continuationlabs/insync,cjihrig/insync,RobLoach/insync,ldesplat/insync