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:
Michael Kret
2022-11-08 16:28:21 +02:00
committed by GitHub
parent ebf17e1827
commit 479644a499
260 changed files with 366 additions and 695 deletions

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions, IHookFunctions } from 'n8n-core';
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
import { IDataObject, NodeApiError } from 'n8n-workflow';
import { OptionsWithUri } from 'request';
/**

View File

@@ -978,15 +978,15 @@ export class Gitlab implements INodeType {
const items = this.getInputData();
const returnData: INodeExecutionData[] = [];
let credentials;
let _credentials;
const authenticationMethod = this.getNodeParameter('authentication', 0);
try {
if (authenticationMethod === 'accessToken') {
credentials = await this.getCredentials('gitlabApi');
_credentials = await this.getCredentials('gitlabApi');
} else {
credentials = await this.getCredentials('gitlabOAuth2Api');
_credentials = await this.getCredentials('gitlabOAuth2Api');
}
} catch (error) {
if (this.continueOnFail()) {