mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)
* ⚡ rule and fixes * ⚡ clean up
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
import { URL } from 'url';
|
||||
|
||||
import { Request, sign } from 'aws4';
|
||||
|
||||
import { OptionsWithUri } from 'request';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import {
|
||||
@@ -13,7 +7,7 @@ import {
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-core';
|
||||
|
||||
import { IDataObject, IHttpRequestOptions, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import { IDataObject, IHttpRequestOptions, NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import { get } from 'lodash';
|
||||
|
||||
@@ -41,7 +35,7 @@ export async function awsApiRequest(
|
||||
} as IHttpRequestOptions;
|
||||
|
||||
try {
|
||||
return await this.helpers.requestWithAuthentication.call(this,'aws', requestOptions);
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error, { parseXml: true });
|
||||
}
|
||||
@@ -96,9 +90,9 @@ export async function awsApiRequestSOAPAllItems(
|
||||
path: string,
|
||||
body?: string,
|
||||
query: IDataObject = {},
|
||||
headers: IDataObject = {},
|
||||
option: IDataObject = {},
|
||||
region?: string,
|
||||
_headers: IDataObject = {},
|
||||
_option: IDataObject = {},
|
||||
_region?: string,
|
||||
// tslint:disable-next-line:no-any
|
||||
): Promise<any> {
|
||||
const returnData: IDataObject[] = [];
|
||||
|
||||
Reference in New Issue
Block a user