mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user