Skip to content

Commit 10bd871

Browse files
authored
chore: correct typo in variable name (nodemailer#1773)
1 parent 28dbf3f commit 10bd871

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)