1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-04 19:58:51 +00:00

smtp/client: remove unnecessary callback invocation

This commit is contained in:
Zack Schuster 2020-11-24 17:41:13 -08:00 committed by Zack Schuster
parent 44d31b579d
commit ca135f8f38

View File

@ -63,9 +63,6 @@ export class SMTPClient {
}
this.queue.push(stack);
this._poll();
if (this.queue.every((x) => x !== stack)) {
callback(null, message);
}
} else {
callback(new Error(why), msg);
}