Cleanup & Fix lint issues

This commit is contained in:
Jan Oberhauser
2021-03-29 11:20:10 +02:00
parent e48f555f07
commit ca50194d71
7 changed files with 25 additions and 25 deletions

View File

@@ -55,7 +55,7 @@ export class WriteBinaryFile implements INodeType {
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
const returnData: INodeExecutionData[] = [];
@@ -65,9 +65,9 @@ export class WriteBinaryFile implements INodeType {
for (let itemIndex = 0; itemIndex < length; itemIndex++) {
const dataPropertyName = this.getNodeParameter('dataPropertyName', itemIndex) as string;
const fileName = this.getNodeParameter('fileName', itemIndex) as string;
item = items[itemIndex];
if (item.binary === undefined) {
@@ -95,7 +95,7 @@ export class WriteBinaryFile implements INodeType {
}
// Add the file name to data
(newItem.json as IDataObject).fileName = fileName;
returnData.push(newItem);