From ca135f8f3823c438d9ae49475bdfdc193b9c9112 Mon Sep 17 00:00:00 2001 From: Zack Schuster Date: Tue, 24 Nov 2020 17:41:13 -0800 Subject: [PATCH] smtp/client: remove unnecessary callback invocation --- smtp/client.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/smtp/client.ts b/smtp/client.ts index 7042e99..37077c3 100644 --- a/smtp/client.ts +++ b/smtp/client.ts @@ -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); }