Simplify if condition

This commit is contained in:
Krzysztof Janda 2020-04-11 17:07:14 +02:00
parent be62e94051
commit c99910750f

View file

@ -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;
}