diff options
author | scottmotte <scott@scottmotte.com> | 2013-10-29 15:52:38 -0700 |
---|---|---|
committer | scottmotte <scott@scottmotte.com> | 2013-10-29 15:52:38 -0700 |
commit | 4b04668ecc696c03aa37de7bd48670adb8f56ac7 (patch) | |
tree | 26c3e737f8f0aeb9fcf5ba1ec159a0928074015d /lib/sendgrid.js | |
parent | 61a6499dedb36547ed9c7fb3246fac52845dabf7 (diff) | |
download | sendgrid-nodejs-4b04668ecc696c03aa37de7bd48670adb8f56ac7.zip sendgrid-nodejs-4b04668ecc696c03aa37de7bd48670adb8f56ac7.tar.gz sendgrid-nodejs-4b04668ecc696c03aa37de7bd48670adb8f56ac7.tar.bz2 |
Even if unused, this is easier to read
Diffstat (limited to 'lib/sendgrid.js')
-rw-r--r-- | lib/sendgrid.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 6014277..3b03038 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -160,8 +160,7 @@ var Sendgrid = function(api_user, api_key, options) { _.extend(smtpParams, nodeMailerOptions); } - smtpTransport.sendMail(smtpParams, function(error) { - //Returns: error, response; response unused + smtpTransport.sendMail(smtpParams, function(error, response) { smtpTransport.close(); if(error) { return callback(new Error(error.message), null);} |