From c9d284f52c14b8656e23bc47e72ecb06b5aa0d10 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 7 Sep 2019 09:36:57 +0200 Subject: [PATCH] :bug: Fix bug that EmailReadImap-Node could not be tested --- packages/nodes-base/nodes/EmailReadImap.node.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/nodes-base/nodes/EmailReadImap.node.ts b/packages/nodes-base/nodes/EmailReadImap.node.ts index 9c01ff5b53..57d3a3f6f0 100644 --- a/packages/nodes-base/nodes/EmailReadImap.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap.node.ts @@ -81,8 +81,6 @@ export class EmailReadImap implements INodeType { async trigger(this: ITriggerFunctions): Promise { - let isFirstRun = true; - const credentials = this.getCredentials('imap'); if (credentials === undefined) { @@ -235,14 +233,7 @@ export class EmailReadImap implements INodeType { if (returnData.length) { this.emit([returnData]); - } else if (isFirstRun === true && this.getMode() === 'manual') { - // If it is the first run we emit even when it is empty. If we would - // not do that it would wait till the first unread email arrives - // before it would continue to execute the next node. - this.emit([]); } - - isFirstRun = false; }, };