mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -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 returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
|
||||
if (returnAll !== true) {
|
||||
if (!returnAll) {
|
||||
options.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue