n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,10 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import {
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
const pdf = require('pdf-parse');
@@ -42,9 +38,7 @@ export class ReadPDF implements INodeType {
let item: INodeExecutionData;
for (let itemIndex = 0; itemIndex < length; itemIndex++) {
try{
try {
item = items[itemIndex];
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex) as string;
@@ -57,7 +51,6 @@ export class ReadPDF implements INodeType {
binary: item.binary,
json: await pdf(binaryData),
});
} catch (error) {
if (this.continueOnFail()) {
returnData.push({
@@ -75,5 +68,4 @@ export class ReadPDF implements INodeType {
}
return this.prepareOutputData(returnData);
}
}