From c99910750fae7792a420b21af68672c71a57a8e3 Mon Sep 17 00:00:00 2001 From: Krzysztof Janda Date: Sat, 11 Apr 2020 17:07:14 +0200 Subject: [PATCH] Simplify if condition --- packages/nodes-base/nodes/Cockpit/Cockpit.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts b/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts index b0961fd1e7..076c0e8ebf 100644 --- a/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts +++ b/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts @@ -131,7 +131,7 @@ export class Cockpit implements INodeType { const options = this.getNodeParameter('options', i) as IDataObject; const returnAll = this.getNodeParameter('returnAll', i) as boolean; - if (returnAll !== true) { + if (!returnAll) { options.limit = this.getNodeParameter('limit', i) as number; }