Remove duplicate conditional on Function-Node (#1375)

This commit is contained in:
dilmac
2021-01-25 14:54:49 +03:00
committed by GitHub
parent 2568b4b571
commit 2e1edcad87

View File

@@ -98,9 +98,6 @@ export class Function implements INodeType {
throw new Error('Always an Array of items has to be returned!');
}
for (const item of items) {
if (item.json === undefined) {
throw new Error('All returned items have to contain property named "json"!');
}
if (item.json === undefined) {
throw new Error('All returned items have to contain a property named "json"!');
}