Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 059a7ef

Browse files
committed
Return after promise rejected.
I'm using this in parse-server, and there was a problem. The promise should have been rejecting, but instead it was rejecting AND resolving. Not sure that this is the best fix, happy to discuss further.
1 parent 1462bc6 commit 059a7ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var SimpleMailgunAdapter = mailgunOptions => {
1919
mailgun.messages().send(data, (err, body) => {
2020
if (typeof err !== 'undefined') {
2121
reject(err);
22+
return;
2223
}
2324
resolve(body);
2425
});

0 commit comments

Comments
 (0)