mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -209,9 +209,9 @@ export class KafkaTrigger implements INodeType {
|
|||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.returnHeaders) {
|
if (options.returnHeaders && message.headers) {
|
||||||
const headers: {[key: string]: string} = {};
|
const headers: {[key: string]: string} = {};
|
||||||
for (const key in message.headers) {
|
for (const key of Object.keys(message.headers)) {
|
||||||
const header = message.headers[key];
|
const header = message.headers[key];
|
||||||
headers[key] = header?.toString('utf8') || '';
|
headers[key] = header?.toString('utf8') || '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user