Skip to content

Commit

Permalink
Update jsdoc
Browse files Browse the repository at this point in the history
Since callback is optional and we can skip it, when we use nodemailer in a promise way, we don't want IDEs to warn us about missing arguments.
  • Loading branch information
dmlukichev authored Jul 2, 2017
1 parent 120ff1e commit f75d308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Mail extends EventEmitter {
* Sends an email using the preselected transport object
*
* @param {Object} data E-data description
* @param {Function} callback Callback to run once the sending succeeded or failed
* @param {Function?} callback Callback to run once the sending succeeded or failed
*/
sendMail(data, callback) {
let promise;
Expand Down

0 comments on commit f75d308

Please sign in to comment.