node-mandrill icon indicating copy to clipboard operation
node-mandrill copied to clipboard

Callback called twice

Open pedroassis opened this issue 8 years ago • 0 comments

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

pedroassis avatar Feb 01 '17 16:02 pedroassis