From 0272cec01d2a2fb1d6c245daef54d3d2e52785a3 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 25 Mar 2021 13:19:11 +0100 Subject: [PATCH] :shirt: Fix lint issue --- packages/nodes-base/nodes/MoveBinaryData.node.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/nodes-base/nodes/MoveBinaryData.node.ts b/packages/nodes-base/nodes/MoveBinaryData.node.ts index f31f326c59..666f8c3790 100644 --- a/packages/nodes-base/nodes/MoveBinaryData.node.ts +++ b/packages/nodes-base/nodes/MoveBinaryData.node.ts @@ -24,9 +24,10 @@ iconv.encodingExists('utf8'); // Create options for bomAware and encoding const bomAware: string[] = []; const encodeDecodeOptions: INodePropertyOptions[] = []; -Object.keys((iconv as any).encodings).forEach(encoding => { - if (!(encoding.startsWith('_') || typeof (iconv as any).encodings[encoding] == 'string')) { // only encodings without direct alias or internals - if ((iconv as any).encodings[encoding].bomAware) { +const encodings = (iconv as any).encodings; // tslint:disable-line:no-any +Object.keys(encodings).forEach(encoding => { + if (!(encoding.startsWith('_') || typeof encodings[encoding] === 'string')) { // only encodings without direct alias or internals + if (encodings[encoding].bomAware) { bomAware.push(encoding); } encodeDecodeOptions.push({ name: encoding, value: encoding }); @@ -235,7 +236,7 @@ export class MoveBinaryData implements INodeType { '/mode': [ 'binaryToJson', ], - encoding: bomAware + encoding: bomAware, }, }, type: 'boolean', @@ -249,7 +250,7 @@ export class MoveBinaryData implements INodeType { '/mode': [ 'jsonToBinary', ], - encoding: bomAware + encoding: bomAware, }, }, type: 'boolean',