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

@@ -335,7 +335,7 @@ export class GraphQL implements INodeType {
const responseFormat = this.getNodeParameter('responseFormat', 0) as string;
const { parameter }: { parameter?: Array<{ name: string; value: string }> } =
this.getNodeParameter('headerParametersUi', itemIndex, {}) as IDataObject;
const headerParameters = (parameter || []).reduce(
const headerParameters = (parameter ?? []).reduce(
(result, item) => ({
...result,
[item.name]: item.value,
@@ -398,9 +398,9 @@ export class GraphQL implements INodeType {
throw new NodeOperationError(
this.getNode(),
'Using variables failed:\n' +
requestOptions.body.variables +
(requestOptions.body.variables as string) +
'\n\nWith error message:\n' +
error,
(error as string),
{ itemIndex },
);
}