mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-25 19:41:14 -08:00
👕 Fix lint issue
This commit is contained in:
parent
fb6c243edd
commit
6336158d55
|
@ -209,9 +209,9 @@ export class KafkaTrigger implements INodeType {
|
|||
} catch (error) { }
|
||||
}
|
||||
|
||||
if (options.returnHeaders) {
|
||||
if (options.returnHeaders && message.headers) {
|
||||
const headers: {[key: string]: string} = {};
|
||||
for (const key in message.headers) {
|
||||
for (const key of Object.keys(message.headers)) {
|
||||
const header = message.headers[key];
|
||||
headers[key] = header?.toString('utf8') || '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue