mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
Simplify if condition
This commit is contained in:
parent
be62e94051
commit
c99910750f
|
@ -131,7 +131,7 @@ export class Cockpit implements INodeType {
|
||||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||||
|
|
||||||
if (returnAll !== true) {
|
if (!returnAll) {
|
||||||
options.limit = this.getNodeParameter('limit', i) as number;
|
options.limit = this.getNodeParameter('limit', i) as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue