Skip to content

Commit

Permalink
fix return Promise in function sendMail
Browse files Browse the repository at this point in the history
  • Loading branch information
malash committed Apr 13, 2016
1 parent d021598 commit 00dd2c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nodemailer.js
Expand Up @@ -262,7 +262,8 @@ Nodemailer.prototype.sendMail = function (data, callback) {
};

if (typeof this.transporter === 'string') {
return callback(new Error('Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it'));
callback(new Error('Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it'));
return promise;
}

this.logger.info('Sending mail using %s/%s', this.transporter.name, this.transporter.version);
Expand Down

0 comments on commit 00dd2c1

Please sign in to comment.