refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -219,8 +219,6 @@ export class KafkaTrigger implements INodeType {
await consumer.subscribe({ topic, fromBeginning: options.fromBeginning ? true : false });
const self = this;
const useSchemaRegistry = this.getNodeParameter('useSchemaRegistry', 0) as boolean;
const schemaRegistryUrl = this.getNodeParameter('schemaRegistryUrl', 0) as string;
@@ -250,7 +248,7 @@ export class KafkaTrigger implements INodeType {
const headers: { [key: string]: string } = {};
for (const key of Object.keys(message.headers)) {
const header = message.headers[key];
headers[key] = header?.toString('utf8') || '';
headers[key] = header?.toString('utf8') ?? '';
}
data.headers = headers;
@@ -264,7 +262,7 @@ export class KafkaTrigger implements INodeType {
data = value;
}
self.emit([self.helpers.returnJsonArray([data])]);
this.emit([this.helpers.returnJsonArray([data])]);
},
});
};