mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 20:02:26 -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) { }
|
} 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') || '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue