1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-10 12:35:46 +03:00

👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2021-04-04 10:49:25 +02:00
parent 55c67d8a20
commit 012818b804

View File

@ -315,7 +315,7 @@ export class RabbitMQ implements INodeType {
let headers: IDataObject = {};
if (options.headers && ((options.headers as IDataObject).header! as IDataObject[]).length) {
let itemOptions = this.getNodeParameter('options', i, {}) as IDataObject;
const itemOptions = this.getNodeParameter('options', i, {}) as IDataObject;
const additionalHeaders: IDataObject = {};
((itemOptions.headers as IDataObject).header as IDataObject[]).forEach((header: IDataObject) => {
additionalHeaders[header.key as string] = header.value;
@ -379,7 +379,7 @@ export class RabbitMQ implements INodeType {
let headers: IDataObject = {};
if (options.headers && ((options.headers as IDataObject).header! as IDataObject[]).length) {
let itemOptions = this.getNodeParameter('options', i, {}) as IDataObject;
const itemOptions = this.getNodeParameter('options', i, {}) as IDataObject;
const additionalHeaders: IDataObject = {};
((itemOptions.headers as IDataObject).header as IDataObject[]).forEach((header: IDataObject) => {
additionalHeaders[header.key as string] = header.value;