Try removing then and the tests will fail. —
Sent from Mailbox for iPhone

On Thu, Feb 6, 2014 at 9:45 AM, Jonah Kagan <notifications@github.com>
wrote:

>> @@ -11,9 +11,10 @@ module.exports = class Map extends Transform
>>      debug "_transform #{JSON.stringify chunk}"
>>      if @options._async
>>        @options.fn chunk, (err, result) =>
>> -        return cb err if err
>> +        if err?
>> +          return setImmediate -> cb err
> Do you need `setImmediate` on L15/L17? Both of these calls are within the callback to `@options.fn`, which is supposed to be async.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/Clever/understream/pull/54/files#r9509973