Skip to content

Commit d882ccf

Browse files
committed
Merge branch 'master' of github.com:nodemailer/nodemailer
2 parents 1d7e4f7 + 10bd871 commit d882ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/smtp-connection/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,8 +1147,8 @@ class SMTPConnection extends EventEmitter {
11471147
}
11481148
notify = notify.map(n => n.trim().toUpperCase());
11491149
let validNotify = ['NEVER', 'SUCCESS', 'FAILURE', 'DELAY'];
1150-
let invaliNotify = notify.filter(n => !validNotify.includes(n));
1151-
if (invaliNotify.length || (notify.length > 1 && notify.includes('NEVER'))) {
1150+
let invalidNotify = notify.filter(n => !validNotify.includes(n));
1151+
if (invalidNotify.length || (notify.length > 1 && notify.includes('NEVER'))) {
11521152
throw new Error('notify: ' + JSON.stringify(notify.join(',')));
11531153
}
11541154
notify = notify.join(',');

0 commit comments

Comments
 (0)