Skip to content

Callback called twice #13

@pedroassis

Description

@pedroassis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions