node-mandrill
node-mandrill copied to clipboard
Callback called twice
The code is allowing the callback to be called twice: If there is no error, but the body is not a valid JSON the catch calls the callback with the parse error, then calls it again with the body. https://github.com/jimrubenstein/node-mandrill/blob/master/mandrill.js#L42